• Hello.
    I was wondering if someone could help me. Is there any way to hide the ‘read more’ button is no page break has been installed in the post.

    At the moment the read more button appears, regardless of whether there is any more to read!

    I think the code currently inserting the break on the post is

    <a href="<?php the_permalink() ?>"

    Any ideas?

    thanks,

Viewing 5 replies - 1 through 5 (of 5 total)
  • Don’t think the_permalink is the problem.

    Could be a plugin doing that.

    Or could be the code in your index.php, so paste all the code in a pastebin and report the link back here.

    Thread Starter zandergrin

    (@zandergrin)

    Hi thanks for your help… whats a pastebin!!??

    Thread Starter zandergrin

    (@zandergrin)

    HI,

    found it! The posts are inserted in a seperate php file, so I’ve included the index.php and lefposts.php – which inserts the posts on the homepage – into one pastebin, Let me know if you need anything else.

    Thanks again for the help.

    https://pastebin.com/m3dd90fb7

    Thread Starter zandergrin

    (@zandergrin)

    or with php highlighting..

    https://pastebin.com/d171bd8c7

    I think this is what you are asking–

    change this:
    <a href="<?php the_permalink() ?>" title="read more about <?php the_title_attribute(); ?>" class="f-read">Continue reading</a>

    to this:
    <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘hide read more if there’s nothign to read’ is closed to new replies.