Only excerpts of posts in category listings

  • Anonymous


    The category.php function shows my posts in full length. I actually only want to get the excerpts of the posts. I understand that the solution is to change the loop function (when called from category.php): “the_content” must be changed into “the_excerpt”. So far so good.

    In category.php, right before the call of get_template_part(‘loop’, ‘category’); I read the message:

    /* Run the loop for the category page to output the posts.

    * If you want to overload this in a child theme then include a file

    * called loop-category.php and that will be used instead.


    Therefore I created a loop-category.php (in my childtheme directory) with exactly the same content as loop.php where I only changed “the_content” into “the_excerpt”.

    But that solution is not doing the job. Nothing happens: loop-category.php is not called. Im sure there is something I don’t fully understand.

    Thanks for the help!



    Oops! No need to hack the theme core files to show post excerpts on category listings. Go to Graphene Options –> Display –> Excerpt Display Options and uncheck Show full content in archive pages. Save Options!




    But it is unchecked already 🙁

    It’s this page:



    Thanks for your answer!

Viewing 4 posts - 1 through 4 (of 4 total)

  • You must be logged in to reply to this topic.
Graphene Themes Forum