-
AuthorPosts
-
July 24, 2018 at 3:53 pm #989233
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
July 25, 2018 at 8:45 am #989543Hey 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,
IsmaelJuly 25, 2018 at 11:16 am #989630One 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?
-
This reply was modified 7 years, 3 months ago by
Rustybucket.
July 25, 2018 at 4:08 pm #989765Hi 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,
VictoriaJuly 25, 2018 at 4:18 pm #989773Thank 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.
July 26, 2018 at 5:18 am #990044Hi,
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,
RikardJuly 26, 2018 at 2:45 pm #990271Can be closed. Thanks again.
July 27, 2018 at 7:57 am #990551 -
This reply was modified 7 years, 3 months ago by
-
AuthorPosts
- The topic ‘Blog posts content element displaying pages’ is closed to new replies.
