Category page in full post blog mode (with excerpts in other pages)

  • Kreachure

    #4146

    Hi. Is there a way to make a category page a “blog” with full posts instead of excerpts, BUT without deactivating excerpts in other pages with “Excerpt Display Options > Show full content in archive pages”?

    Mod

    Kenneth John Odle

    #27372

    I have been trying to think of a way, but haven’t come up with anything. Maybe there is a plugin?

    Kreachure

    #27373

    I’ve been searching everywhere but I just cannot find a plugin that does this. Are you sure you don’t know how to do this? I thought that it would require changing the_excerpt for the_content somewhere or something, but I don’t know much about PHP so I don’t know.

    Mod

    Kenneth John Odle

    #27374

    Yeah, that’s what I thought, too, but haven’t figured where/how to do this.

    Kreachure

    #27375

    Good news, I figured it out!

    I had to copy the loop.php into a new file called loop-category.php, and in this file, change <?php the_excerpt(); ?> for <?php the_content(); ?> and voilá! Category pages are now blog-like, and other pages still show excerpts!

    Oh, but after doing this it still generated the excerpt thumbnail, which messed up the posts. So, I also had to remove the code right above that line to remove the thumbnail generation, and now the posts are a-okay. I’m very happy now! Thanks for your help though.

    (I can post a more specific step-by-step guide to help others, if you think that’s a good idea. 🙂

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

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!