Archived topic
Some posts in category page display the full posts content but some don't?
7 replies · Started by Tom on June 17, 2021
I've just built my first site with GP and starting to get used to it :). However, I'm not sure how to edit/style the category pages? At the moment I have installed "Dispatch" and have managed to get the homepage and posts pages looking how I want them, but the category pages are all over the place.
How do I edit these? And why are some posts showing all the content while some are not.
Hi there,
I believe this is the issue:
https://docs.generatepress.com/article/excerpt-issues/#full-post-content-displaying-while-using-excerpt
I just found that out! Thanks for the reply and the link! Can you let me know where this information is coming from though? I want to be able to change things on the category pages. At the moment there are 8 posts leaving a gap at the end, is it possible to change this to display 9 posts in the category section?
Thanks for your help.
I believe this is what you are looking for:
https://generatepress.com/forums/topic/limit-the-number-of-post/#post-1314385
That code works a treat! But I want this to work for all category pages, do I have to add that code with the individual slugs for each category? Or is there a way to make all the category pages have x amount of posts?
If you use is_category() as the conditional tag then it will target all categories:
https://codex.wordpress.org/Conditional_Tags#A_Category_Page
Thanks! Much appreciated Leo!
No problem :)