• I need to have some category archives that have a featured image thumbnail in the list (for the blog) and some category archives that do not, I have added a content-blog.php in /template-parts/ and edited the code but it does not see this and still uses the default /template-parts/content.php

Viewing 1 replies (of 1 total)
  • Theme Author Afterimage Designs

    (@afterimagedesigns)

    Hi @p_r_i_m_e,

    Thank you for using WP Bootstrap Starter Theme, If you create your own template part file and want to make it to show only in the archive you should edit the archive.php and look for this line

    get_template_part( 'template-parts/content', get_post_format() );

    and replace it with

    get_template_part( 'template-parts/content', 'blog' );

Viewing 1 replies (of 1 total)
  • The topic ‘template parts for category archives’ is closed to new replies.