WordPress.org

Forums

[resolved] Disable automatic more-tag for a specific category (2 posts)

  1. knalstaaf
    Member
    Posted 5 years ago #

    I'm looking for a way to disable the automatic more-tag for a specific category.

  2. knalstaaf
    Member
    Posted 5 years ago #

    Found it:

    <?php
    	if (is_category(4)) {
    		the_content();
    	}else{
    		the_excerpt();
    	}
    ?>

    When the category's ID is 4, the full posts will be displayed in the archive. Other posts will be displayed as a teaser.

Topic Closed

This topic has been closed to new replies.

About this Topic