• torweb

    (@torweb)


    I’m using the Pages Post plugin and am looking for a way to have the <!–more–> link appear and function on the page I’m assigning the post to. I understand that <!–more–> doesn’t work on a page but have found some code to add which should make it work buy inserting:

    <?php
    global $more;
    $more = 0;
    ?>

    and

    <?php the_content(‘Continue Reading’); ?>

    My question is does anyone know if this will work…also I’ve pasted a section of my page.php to see if it’s in the correct place.

    Thanks so much for any help…I’ve been working on this for the last week 🙁

    Here is the code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter torweb

    (@torweb)

    here is the link to my post to view the code:

    http://wordpress.pastebin.com/fPNZeT0h

    esmi

    (@esmi)

    Yes – it works.

    Thread Starter torweb

    (@torweb)

    Thank you for the reply esmi. With the code added to the page.php, I’m not seeing the read more break on the page. To clarify:

    I created a blank page called stories in wordpress which created a menu link. I have several posts where I’m using Page Posts plugin to have them open in the Stories tab. Viewing them as main post, there is a break where the read more tag is inserted. Viewing them on the Stories tab displays the full length article without the break.

    I’m thinking wrong?

    Thanks again

    esmi

    (@esmi)

    Is the code above in a custom page template that you’ve applied to the Stories page? Not sure how the Page Posts plugin might affect things…

    Thread Starter torweb

    (@torweb)

    It’s not a custom template. When I created the Stories page I checked “use default template”

    esmi

    (@esmi)

    So you’ve amended the default page template?

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Pages Post Plugin and Read More Issue’ is closed to new replies.