WordPress.org

Ready to get started?Download WordPress

Forums

Attitude
Read more option on pages (2 posts)

  1. quince85
    Member
    Posted 2 months ago #

    Hi,

    I would like to add read more option on pages.
    I've inserted below code to page.php but the left side page template gets all messed up and the link (Continue reading) doesn't work:

    <?php
    global $more;
    $more = 0;
    ?>
    //The code must be inserted ahead of the call the_content, but AFTER the_post()
    
    <?php the_cont
    ent('Continue Reading'); ?>
    `
    Any suggestions?

  2. quince85
    Member
    Posted 2 months ago #

    <?php
    global $more;
    $more = 0;
    ?>
    //The code must be inserted ahead of the call the_content, but AFTER the_post()
    
    <?php the_content('Continue Reading'); ?>

Reply

You must log in to post.

About this Theme

About this Topic

Tags