Viewing 3 replies - 1 through 3 (of 3 total)
  • andrewbecks

    Here’s something I came up with, which seems to be working,

    add_filter('posts_results', 'change_the_posts_content');
    function change_the_posts_content($posts) {
        if (is_array($posts)) {
            foreach ($posts as $post) {
                if($post->post_type=='post'){
                    $post->post_content .= '<!--nextpage-->test test test';
                }
            }
        }
        return $posts;
    }
    Thread Starter andrewbecks

    (@andrewbecks)

    That seems to work perfectly, Gagan Deep Singh. I wasn’t familiar with the post_results filter, so I really appreciate the assistance.

    Always welcome andrewbecks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding an additional paginated page to the_content’ is closed to new replies.