January 4, 2018 at 8:50 pm #215107
I'm looking to display only post titles with a featured image for posts on my category pages. I would possibly also like an excerpt but would settle for either.
By default it displays full text but I'm looking to have a featured image with the title below it in a clean format.
I've created two dummy posts on this page for an example.
It need to be in a clean format like the front page of Brunch Pro.
Any help is greatly appreciated!https://thinkeattrain.com/articles/mind/parenting/January 4, 2018 at 8:56 pm #215108January 4, 2018 at 8:56 pm #215109January 18, 2018 at 9:01 am #215492
Brad thanks for the feedback. I did as specified in the post but the category pages are still rendering the same.
Outside of the directions in the post is there something else it could be?January 18, 2018 at 9:14 am #215493
I renamed the page_landing.php to archive.php and category.php and it loads on category archives.
Maybe caching or a custom function you added like template_include.
January 18, 2018 at 9:42 am #215494
Tried that and it did not work either.
I'm not currently running any caching installs or have added any custom function. I've set the site up recently and for the most part it's a base install.January 18, 2018 at 11:52 am #215499January 18, 2018 at 1:39 pm #215504
In the root theme folder as the post instructed. Same location as style.css, front-page.php, etc.January 18, 2018 at 5:24 pm #215515
I have tested this twice and both times it works perfectly.
See the WordPress Template Hierarchy https://developer.wordpress.org/themes/basics/template-hierarchy/#category
Note : You will need to add code to the custom archive template to add or remove default hooks and markup
Example : Add the following code to the file :
// Remove site header elements. remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); remove_action( 'genesis_header', 'genesis_do_header' ); remove_action( 'genesis_header', 'genesis_header_markup_close', 15 );
January 31, 2018 at 8:38 am #215911
Brad I've been playing with it and nearly have it there. Initially I did not use the genesis archive page php to start with and I'm not sure what was missing but it seems to be on track now.
Thanks again for all the help.January 31, 2018 at 8:46 am #215912This reply has been marked as private.
- The topic ‘Wellness Pro – Display Post Title & Image on Category Pages’ is closed to new replies.