Tagged: ismael
Hi,
I am using the Encyclopedia Pro plugin.
The enfold theme works fine on the custom post-type “encyclopedia” but on the archive and tag overview pages the A|B|C-navigation and the original appearance of the plugin get lost. This is because the “blog-grid” template removes the main-query and creates is own.
The developer of the plugin told me to modify the original main-query by adding a pre_get_posts filter.
Can you please give me an example how to add that filter?
Best regards,
Neverlands
Hey Neverlands,
Thank you for using Enfold.
The query modification won’t help because the template file is different. You need to retrieve the actual template file used for the custom post type. What if you create a new archive template for the custom post type?
archive-encyclopedia.php
Please ask the plugin author for additional info regarding the template files used for the custom post type.
Best regards,
Ismael
Hi Ismael,
thanks for your reply.
The solution with the archive-encyclopedia.php template works very well!
If I needed a new template for the encyclopedia tags would I have to copy the tag.php?
I tried this but it didn’t change anything.
Thanks and best regards,
Neverlands
Hi,
Please refer to the following link.
// https://developer.wordpress.org/themes/basics/template-hierarchy/
Look for the “Tag” section.
Best regards,
Ismael
Hi Ismael,
thanks for your reply.
I found out that Encyclopedia uses taxonomy-encyclopedia-tag.php for the tag pages.
You can mark the topic as closed.
Best regards,
Neverlands