Archives file customization

Hey,

Which files load the different archives for taxonomies or categories?
I want to create a custom archives page for custom posts/custom taxonomies. I understand that you don't normally support that, I just want pointers.

What currently happens to me, is that I created a custom archive page for taxonomies/categories - and that page loads the plugin's logic, but it also loads the default theme's archives logic. So I need to restrict it only to the theme's normal custom posts/taxonomies.

The order to find a solution I need to:
1) Locate the files in which it loads
2) Find the registered custom posts
3) Disable loading the default behavior for anything that isn't the default theme post types/taxonomies.

Thanks a lot,
Yossi

Comments

  • Alright, so playing around - I found it's loading: includes/content-post.php in $output

    Now I just have to re-route it to the right function, in case it's not one of the default taxonomies/categories.
    Can you please provide me with the list/direct me where to get that? :)

  • Hi Yossi,
    You are right, we do not support this kind of changes. If you want to create custom archive pages or post types please search the web because this is a normal wordpress function. We do not create anything new here.
  • Hi Yossi,
    You are right, we do not support this kind of changes. If you want to create custom archive pages or post types please search the web because this is a normal wordpress function. We do not create anything new here.
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.