badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Read more option on pages

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #6821
    quinice85
    Participant

    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?

    #6823
    quinice85
    Participant
    <?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'); ?>
    #6855
    Sanjip Shah
    Participant

    @quinice85 The same thing is done inside this function attitude_theloop_for_template_blog_full_content for the blog full post content page template. You can see it and see if it helps. Also, on the other hand I don’t see a need for the ‘Read More’ option on the Pages. There is a ‘Excerpt’ option box in the page editor screen in the dashboard, this allows you to control the excerpt content and length. Try it out as well and see if this helps you.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.