• Resolved evelester

    (@evelester)


    I am currently working on the design of http://sortedsolutionsllc.com/sayit/ and one problem I am having is the “read more” and “continue” tags are showing up even when there is no further content to read. Seems misleading. Is there any php if statements out there for this purpose? I tried searching but couldn’t find anything on it with the ways I searched.

    any ideas?

    p.s. ignore the ugliness- it is still in its early stages of design!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I grabbed this out of a post here a few days ago…I knew it would come in handy. 🙂

    <?php if( strpos( $post->post_content , "<!--more-->" ) != false ) { ?>
    <div>
    <a href="<?php the_permalink(); ?>">Read more</a>
    </div>
    <?php } ?>
    Thread Starter evelester

    (@evelester)

    you rock!!! I know it is a silly little problem but it was bugging me!

    thanks soooo much!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to not show “more” if there is not any ‘more’ to read?’ is closed to new replies.