I have a custom post type that is assigned a category. On two pages, I’m using the ‘Blog posts content element’ to display the posts just from that category. The posts display fine but both pages are also displaying links to themselves amongst the posts. In other words, page A displays the blog posts but also displays links to page A and B. Page B displays the blog posts but also displays links to page A and B.
I’m using the Blog posts content element elsewhere with a different category and it’s working fine.
I’m stuck, any ideas?
Cheers
Hey Rustybucket,
Thank you for using Enfold.
Did you create categories with the same name as those pages? You may need to remove or rename the categories or the pages.
Best regards,
Ismael
One of the pages shares the name but the other doesn’t. The commonality between the two is that both pages which are displaying IN the feed also display the feed ON them. I tried renaming the page which shares the category name and it didn’t make a difference.
Shouldn’t it only display posts anyway? Any idea why it’s including pages at all?
Would it be possible to write a function to override the query so it only returns posts?
Hi Rustybucket,
Here is a thread for you to consider
https://kriesi.at/support/topic/pages-showing-in-blog-posts-module-with-grid/
If you need further assistance please let us know.
Best regards,
Victoria
Thank you Victoria, those two pages had had categories added to them somehow. I will review my code to find what caused the issue but for now it is fixed.
Thanks again. Excellent support as always.
Hi,
Thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Can be closed. Thanks again.