WordPress.org

Support

Support » Themes and Templates » [Resolved] Category template issue

[Resolved] Category template issue

  • 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!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

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

    Thanks so much!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Category template issue’ is closed to new replies.