You can use the_post
hook to remove <!--nextpage-->
. In this case:
add_action( 'the_post', 'campaign_remove_nextpage', 99);
function campaign_remove_nextpage ( $post ) {
if ( ($_GET['utm_campaign']== 'nonextpagecampaign') && (false !== strpos( $post->post_content, '<!--nextpage-->' )) )
{
// Reset the global $pages:
$GLOBALS['pages'] = [ $post->post_content ];
// Reset the global $numpages:
$GLOBALS['numpages'] = 0;
// Reset the global $multipage:
$GLOBALS['multipage'] = false;
}
};
More in general, you may want to read this warning about SEO effects of using <!--nextpage-->
.
Related Posts:
- How to get a post’s content? [closed]
- Stop WordPress Wrapping Images In A “P” Tag
- Stop WordPress automatically adding tags to post content
- Get content from one page and show it on another page
- WordPress removing tags?
- Add tag to post api wordpress
- Set tags for a post – without tag creation
- Strategy for handling hierarchical pages with empty parent content
- Verify if tag is used on posts
- Plain-text tag list?
- How can you make sure authors’ posts are longer than 250 words?
- Display posts by tag on page
- Edit a post from frontend. post_tags get saved, but not separated
- What is the best / efficient way to get WordPress content by post id and why?
- Convert IPTC keywords to blog post tags
- JSON not valid after json_encode posts
- Add default content to post (for specific category)
- how to limit and display tag?
- Programmatically inserting page breaks
- Hide parts of the post content on the home page
- Filter/Remove HTML Elements on all posts and pages
- Paragraphs removed when using get_post_custom()?
- Include related posts on a page
- Load post content into div with ajax
- How to display post tags
- How to add shortcode tags in single.php [closed]
- Remove post_tag from default post type, add custom taxonomy
- What Defines What Category A Post Picks (if in multiple)
- Testing for post title in ‘if/else’ statement returns no content
- Same content shared between multiple posts?
- Does an action fire when adding a tag via the “Tags” meta box?
- how load content as pop-up using ajax
- how to programmatically change post tags
- Filter Posts By Tag
- WordPress post tag & custom field
- How to get only text from wordpress post content?
- WP Query related posts by current page Tag ID
- How to display all posts assigned to some tag?
- How To Add One Tag to Multiple Posts?
- Add Post Tags to Body Class
- How to prevent WordPress from updating the modified time?
- Batch process: remove first image from post content
- WP Query – duplicated posts once including tags in search results
- wp_tag_cloud() and the_taxonomies() work but not the_tag()
- Tags to Post-ID mysql query. Tag Search
- How to add Tags Filter in wordpress admin dashboard
- Prepend or add an Image to the content of a Post
- Display post from current category and same tag?
- Why content_arr[‘extended’] removes paragraph tags?
- Unautop / Sanitize content added to a post through a plugin
- is there a way to show the the post title after the image?
- How to get rid of shortcodes in post content once and for all
- Should I use posts or pages in this scenario?
- Display posts with tag that matches current post title
- How can I make a post that belongs to a category or have specific tags, display different from the other single posts?
- Add Word Limit to Posts
- Using permalinks, category slugs, and tag slugs
- “more” tag doesn’t appear when browsing category achives or search
- Print all the tags from a custom post type Please
- Display tag image in post using Taxonomy Images plugin index.php
- Add multiple tags to multiple posts
- Help with Taxonomies
- Show only one page link in content pagination
- WP_Query: Mixing category__in and tag__in together
- How to add tags (custom taxonomy) to post class css?
- How can I hide tags on a child-category page, if that tag has not been used?
- Show only posts with images and a fixed amount of posts
- How to create new post content templates for my users?
- How to get Tags with specific post id
- How do I do a page break?
- How Do I Get My Post Tags to Alphabetize?
- WordPress query_posts by tag doesn’t work anymore(?)
- Conditionals if tags exist?
- Why does a published post only displays the title and not the content in the site? [closed]
- Displaying posts that belong to a specific author
- Display related post by tag name of current post
- How to remove specific tag from multiple posts?
- Best Way to Add UnEditable HTML to Posts
- The_excerpt() doesn’t parse – how to change that?
- Page and post loop same template
- Benefits to using semantic HTML in post content? [closed]
- Extracting relevant tags associated with that particular single post only
- How to change the layout of posts when viewing all posts by tag [closed]
- See if a post has a specified tag
- Count several post tags
- How to get post with associated categories and tags names instead of ids with rest api?
- Does WP automatically tag posts into the archive?
- Tags on products vs tags on blog posts. An easy way to duplicate them
- Changing Post Tag Color Based On Post Count
- the_content() Not Grabbing All Content
- Removing all post tags except a given list
- Having pages after specifying post_type post
- How to check if there are posts with the same tag
- In what context should Categories and Tags be used
- How to compare post tags?
- Would a “hub” page work better as a page or a post?
- Can’t save WordPress post with “/etc/” in it
- content summary of a post disappears If an images added at the beginning of the post. how to solve it?
- Add post tags to previously created custom post type
- Hide parts of the post content after typing it’s name or searching it by category