Forums

Count number of words in post/page and insert <–nextpage–> (3 posts)

  1. Macpup
    Member
    Posted 4 years ago #

    I'm fairly new to WordPress and have only really tinkered with PHP before, but I'm helping a friend out with a WordPress site and he wants in use the <–nextpage–> tag in his template to break up post content.

    Is there any way of counting the number of characters in the loop, and then getting it to auto insert the <–nextpage–> automatically... that would be fantastic!

    I'd love to help this guy out, but I'm just not good enough on WordPress/PHP to do this - please help, it will make his day (and website!!!).

  2. Ivovic
    Member
    Posted 4 years ago #

    to do this right, you'd want to insert the page break after the next </p> tag, following your character/word limit.

  3. iridiax
    Member
    Posted 4 years ago #

    Look for an excerpt plugin and/or a pagination plugin.

    http://wordpress.org/extend/plugins/

Topic Closed

This topic has been closed to new replies.

About this Topic