Automatically create pages in a post based on number of words
This is tough to do programmatically because of potential variations in html and how the tags balance. However, if you were to try, here’s how I’d suggest doing it. First of all, WordPress sets up the post pagination in setup_postdata(), which is called at the end of the_post(). That means you need to get those … Read more