Return to Support

Only excerpts of posts in category listings

Home Forums Graphene WordPress theme Support Only excerpts of posts in category listings

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2972
    B-Far
    Member

    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!

    #22892
    Prasanna SP
    Member

    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!

    #22893
    AlainS
    Member

    Thanks!

    But it is unchecked already 🙁

    It’s this page: http://www.seoguru.nl/seo-blog/

    #22894
    AlainS
    Member

    Thanks for your answer!

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

You must be logged in to reply to this topic.