• Is there a way to check if a post has a <!–more–> quicktag before you call the_content()?

    For example, if I wanted to do something different with those posts that have it as opposed to those that do, how could I check?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try something like this:

    <?php if(strpos($post->post_content, '<!--more-->')) : ?>
    Do this if there's <!--more-->
    <?php else : ?>
    Do this if there's no <!--more-->
    <?php endif; ?>

    Thread Starter nmallory

    (@nmallory)

    Thanks! This works great!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Checking for the more quicktag?’ is closed to new replies.