Showing full post for certain categories

My site is set to show just excerpts for archive, front page and search results, which is what I want. However, is it possible to set certain categories to show the full posts?

  • Predrag Dubajic

    Hey angeljs,

    Hope you had a nice weekend :slight_smile:

    I'm afraid that I'm not familiar with a solution for this without some coding.

    What you would need to do is edit your archive.php file, so make sure to move it to your child theme first.
    Now in there find where the excerpt is called and replace it with something like this:

    if ( in_category( array( 'CATEGORY_ONE', 'CATEGORY_TWO' ) ) ) {
    } else {

    Replace CATEGORY_ONE and CATEGORY_TWO with your desired categories and add new ones if needed and now those categories will show content while others will display excerpt only.

    Best regards,

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.