So I just found this filter:
the_posts
https://codex.wordpress.org/Plugin_API/Filter_Reference/the_posts
Send it to a function, and the first parameter is the entire post page with the pagebreak.
My plan is to run it through regex, delete the first occurence of the <!--nextpage-->
and return it. I’ll see if that works
Related Posts:
- The next_posts_link() works only with original $wp_query
- Skipping first 3 posts in wp query
- Pagination not working on Custom Page Template
- If specific user role then sticky post
- When paginating a Page with the tag, how can the 2nd and subsequent page styles be customised?
- Converting multiple loops into one single loop with pagination
- Lazy Load using WP_Query pagination
- How can I remove posts of a certain category from homepage after a specified time period?
- Should $found_posts be returned as string in ‘found_posts’ filter hook?
- How do I detect which page I’m on within a paginated post?
- Blog post per page setting conflicting with custom WP_Query?
- Change post order random through out the entire WordPress
- How to filter my search in post if contains a word in title, content or excerpt?
- How to : pagination in 3 different custom loops on the same page
- How safe is renovating $wp_query when doing WP_Query pagination in Page Template
- Why are my paginated posts always returning the same results?
- Getting blog pagination to work on page set as front page
- How do I display main query posts in random order using add_filter
- Manipulated offset and pagination, can’t display last post anymore
- the wp_post_update isn’t working all the time
- Display/Filter post using if else statement
- Numbered Pagination Showing The Same Posts After Altering WP_Query
- long-title posts do not want published
- Get results from the main wp_query
- Add wp-link-pages to post
- Pagination for custom query won’t let me back on page 1
- Can’t get pagination to work
- The next_posts_link() works only with original $wp_query
- wp_query posts sorting doesn’t work
- Limit amount of pages shown in pagination within wp_query
- query_posts different amount of posts per page [duplicate]
- Add custom PHP (no-SQL) filter to WP_query
- Filters do not work when there are multiple (one works)
- Should we trust the post globals?
- Removing filter dropdown in posts table (in this case Yoast SEO)
- Allow variable amount of comments before pagination
- How to know if get_posts() failed?
- Show related posts by category but ignore one category
- post__in for get_posts with a dynamic array
- Post content being duplicated by the_content();
- Programmatically inserting page breaks
- How to add padding between posts
- Working Bootstrap Carousel Conversion to WP – Technical Questions
- Add few specific post ids to wp_query
- wp_query ‘s’ parameter does not work with custom post type
- How to display different number of posts
- WP Query – duplicated posts once including tags in search results
- Getting content from a single *page* of a post
- How to retrieve the postID in a “image_send_to_editor” hook function?
- how to get posts ids inside pre_get_posts filter?
- How do I use WP_Query to get a range of posts with custom fields that have numbers with letters in them?
- Setup a custom dynamic post
- Anyway to grab author name and featured image in an embeded in inital array of posts outside of loop?
- use wpml_post_language_details function other plugin based on $post->ID [closed]
- Removing noindex posts from wp_query
- pagination for single post by category
- Exclude the first ‘n’ number of posts of a tag from home page?
- Start post pagination at 0 instead of 1
- wp_posts table: safely remove unused columns to save database storage
- Using wp_list_pages() after calling query_posts()
- Inner join overrides Advanced Custom Fields plugin’s get_field [closed]
- Query posts by Author and/or by Tag
- Why won’t pagination work?
- Hook for changing excerpt content when excerpt not set
- Migrate posts from category and sub-category via SQL
- Exclude some posts from displaying in wp_query based on some condition
- Custom Post Limit for homepage only without plugin?
- Restrict displaying posts to the poster itself (in Back-end)
- changing parent_id on post
- WP_Query get posts in custom database table [duplicate]
- WP query taxonomy optimization
- can’t modify post title using the_posts filter
- Using AJAX to filter posts without refreshing page
- Problem paginating a subquery on a post
- Multisite how to display merged posts from two sites and sort by latest date?
- Using a meta_value or postdate to to query and orderby
- Exclude posts in home slider from sections
- How to display the pagination in my post list? [duplicate]
- How can I get the last post while on the first post for pagination? As if it were infinite
- Ajaxify Post Sort
- filter buddypress users posts by user ‘xprofile’ custom fields
- How do I change the post title’s link on the posts page?
- Loop through all posts showing duplicates
- Manipulate query to show specific post
- WordPress text field in array problem
- Random order of the 5 most popular posts
- My custom query is displaying random posts in random order
- Get query result according to merged array
- How to show the posts list into a static page? Problems to use the loop into a static page
- Make a paginated article (for easier reading on mobile)
- Displaying Results From Custom Taxonomy Query
- Custom filter on all post page (admin backend)
- Multiple loops on a Search result page?
- WP_Query: Fetch posts that are in (category1 and not in category2), OR posts that are not in cagegory1
- WordPress posts loop pagination – first page return 125 posts instead of 10 and the rest return 10
- How to get pagination working with “Pending” Posts
- How do I show the post title if an advanced custom field hasn’t been used?
- How add class the_content();?
- Show a page counter for pagination
- WP_Query post_tilte search in posts table