• I’m trying to change the text of the read more link (on category listings) based on the category the post is in.

    I’ve made a category.php and added the following code inside the loop:


    <?php if (in_category('1')) { ?>
    <?php the_content('Read more »'); ?>
    <?php } else { ?>
    <?php the_content('Read more & download files »'); ?>
    <?php } ?>

    But nothing changes when I change category. Am I using the wrong template file? Or the wrong code?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Showing custom read more on specific category’ is closed to new replies.