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 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
- Strategy for handling hierarchical pages with empty parent content
- Programmatically inserting page breaks
- Include related posts on a page
- How to display post tags
- How to add shortcode tags in single.php [closed]
- 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
- Filter Posts By Tag
- 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?
- WP Query – duplicated posts once including tags in search results
- wp_tag_cloud() and the_taxonomies() work but not the_tag()
- Prepend or add an Image to the content of a Post
- Why content_arr[‘extended’] removes paragraph tags?
- How to get rid of shortcodes in post content once and for all
- Display posts with tag that matches current post title
- 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
- WP_Query: Mixing category__in and tag__in together
- 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 Do I Get My Post Tags to Alphabetize?
- Conditionals if tags exist?
- Why does a published post only displays the title and not the content in the site? [closed]
- 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?
- 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
- How to get post with associated categories and tags names instead of ids with rest api?
- Changing Post Tag Color Based On Post Count
- Removing all post tags except a given list
- How to check if there are posts with the same tag
- 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?
- How to exclude the word “class” from being matched in search?
- Plotting posts on a graph
- Short link to read complete post
- Preview page/post revisions without overwriting current content
- Delete all Tag Links from Posts
- How to Rearrange WordPress Tags list on frontend using Shortcode with specific order?
- Add text and change style to post programmatically depending on category
- why my urdu text is not aligned properly when written in wordpress blog post?
- How to Remove HTML Elements from Post Excerpt?
- Can I show category name in url for only one of my categories?
- how to add tags to post in the Loop?
- Is there a way to categorize a list posts all at once?
- Related post not showing table of content
- Css and function issue on author archive page
- Tag for custom post type
- WordPress get tags in “publish_post” hook
- Top tags with minimum number of posts
- How to count posts in tags within time limit
- Why do I have categories with duplicate slugs?
- Exclude posts in home slider from sections
- Display all tags even if they are not assigned to a post
- Sync All Post Type Tag
- getting custom post by tag
- Replace Tag Keyword With Link Within Post Content
- show only one category and filter by tag
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- Add caption to thumbnails in content
- Hide Certain Tags on Single Post Page
- Display only current page -> posts tags in page
- How to get post_content while the post is being edited
- Multiple approval from editors before publishing?
- Add tags to post before it’s created
- Get part of a page url
- How can I count articles retrieved by tags
- How to use wp_editor(); in functions.php then retrieve content in the template
- Display the popular tags by default in the backend post edit page (without having to click on the link that displays them) [closed]
- Add default content to post (for specific category)
- Stripping tag from elements in post
- How to remove a specific script from bulk wordpress posts and images description?
- After the local installation of an old WP website I can see the homepage but I can’t access to the articles, why?
- WordPress More tag doesn’t work on Single post
- Automatically search and replace link in content (pages/posts)?
- Notify/check if the content of a custom gutenberg block has changed on save_post
- Get related posts matching most of the provided tags using WP_Query
- How to remove category and other tags from posts page