WordPress.org

Ready to get started?Download WordPress

Forums

Yoko
[resolved] Category template issue (3 posts)

  1. kyledriffill
    Member
    Posted 3 years ago #

    Hi,

    I have set up a category page titled category-photography.php

    This is the code I have in the file

    [code moderated per forum rules - please use the pastebin for any code longer than 10 lines]

    The problem is, for some reason when I go to that category on my site, I can not see the full posts as with my main index or any images? Here's the example.
    On this page I want the posts to stay full as when viewing in the main index and especially to show the photos.

    Any help is very very very appreciated.
    Thanks in advance!!

  2. MichaelH
    Member
    Posted 3 years ago #

    In that theme's (yoko) content.php file, around line 47 change
    <?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
    to

    <?php if ( is_search() ) : // Only display excerpts for search. ?>

    Of course this will cause the full post for ALL archives (e.g. date or tag) to display.

  3. kyledriffill
    Member
    Posted 3 years ago #

    Thank you!!
    The issue is sorted and I've learnt a little more about code as well.

    Thanks so much!!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic

Tags