• Resolved leandro_S

    (@leandro_s)


    I have a page whith a long text and I have insert the <!–nextpage–> tag for pagination by using a simple echo:
    echo "<!--nextpage-->"
    But wordpress doesn’t seem to recognize the tag when it is echoed, just if the tag has been stripped…
    How can I fix this?

    https://wordpress.org/plugins/php-code-for-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter leandro_S

    (@leandro_s)

    I forgot to mention that I’m using the “Php code for posts” plugin.

    Plugin Author Jamie

    (@themissingcode)

    Hi Leandro_S,

    <!–nextpage–> is a special code that is parsed before short codes are in the post content, as such this tag needs to be used within the actual post content rather than a short code.

    There may be something in the codex which will allow you to paginate, or you can use custom PHP code to make the same thing happen and echo your own links.

    I hope this helps,

    Thanks,
    TMC

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

The topic ‘echoing doesn't work’ is closed to new replies.