In the current version of Yoast, this link is rendered by presenters/rel-next-presenter.php, which contains this filter:
public function present() {
$output = parent::present();
if ( ! empty( $output ) ) {
/**
* Filter: 'wpseo_next_rel_link' - Allow changing link rel output by Yoast SEO.
*
* @api string $unsigned The full `<link` element.
*/
return \apply_filters( 'wpseo_next_rel_link', $output );
}
return '';
}
So, I’d suggest correcting this by implementing a filter in e.g. your functions.php, such as:
add_filter( 'wpseo_next_rel_link', 'custom_change_wpseo_next' );
function custom_change_wpseo_next( $oldLink ) {
$new_link = 'https://example.com/index.php/page/2';
$link = '<link rel="next" href="'. $new_link .'" />' . PHP_EOL;
return $link;
}
Does that do it?
Related Posts:
- Display Yoast WordPress SEO title in archive template
- How to add a page to the Yoast breadcrumbs
- How to print meta description to posts? [closed]
- Removing “Noindex, follow” from pages [closed]
- Why do I get a 404 for my sitemap index after installing Yoast? [closed]
- Change content language for one page
- Add Page number to Meta Description in WordPress SEO by Yoast [closed]
- Manipulating wp_head content
- Yoast’s WordPress SEO plugin is not showing the correct snippet [closed]
- XML Sitemap : broken XML file [closed]
- make the url unlimited
- Query Post Based of Yoast Primary Category Class
- Wrong Canonical url link
- When does the Yoast SEO filter hook wpseo_sitemap_urlimages fire?
- How to parse Yoast SEO Snippet Variables
- Post content blank after disabling Yoast SEO
- With the Yoast SEO plugin, is it possible to make the meta description a required form field?
- WP-RestAPI and xml sitemap
- help to write a custom php script to settingup yoast priority to pages or posts
- Yoast Seo Plugin – Set no-index to a post automatically when a post is set to sticky [closed]
- Yoast SEO Plugin: Double Title isse [closed]
- Yoast SEO creates sitemaps with a dash ‘-‘ but I can’t get Bing to accept them [closed]
- Edit title-tag in wp_head with yoast seo
- Way to change the Yoast Schema depending on post type? [closed]
- Change base URL of Yoast Sitemap [closed]
- Variable focus word YOAST
- How can I add a second Open Graph image to a site using Yoast? [closed]
- How to call Yoast Seo Tags without needing to call the whole wp_head?
- My WordPress website has 2 header [closed]
- Add content before Yoast description
- Twenty Eleven Theme – SEO Yoast duplicate site titles
- Add Page number to Meta Description in WordPress SEO by Yoast [closed]
- Blog home page has canonical link that is incorrect. Do not see where to change this
- How to Modify Breadcrumb Page Names for Specific Pages? [closed]
- P3 Profiler and Yoast SEO plugin
- WordPress site running on Yoast not being indexed into Google News [closed]
- How to use the Yoast SEO wpseo_canonical filter to set a canonical URL for /, /au/ & /uk/ sites in a MU environment
- Yoast Metadata API to adjust/override the meta description
- Prevent Yoast from removing the canonical tag if robots meta tag is set to noindex [closed]
- how to disable Yoast SEO schema from homepage only?
- WPML and Yoast SEO setup on a wordpress site is not working properly
- Remove canonical link element from noindex pages
- What could be causing the category to be appearing as the post title in the title tag?
- Changing Post Sitemap Frequency to Hourly [closed]
- Turn off auto 301 on archive pages? [closed]
- Yoast: do I still need to manually insert meta tags in my theme or will Yoast do this for me? [closed]
- Hard-code SEO Title defaults across all sites on a multisite
- WordPress site using Yoast SEO being blocked from indexing by robots.txt
- SEO Yoast Menu Not working
- Wrong Open Graph image is shown (og:image) using yoast
- An inactive plugin causes an HTTP 404 issue on a translated post – WPML
- Set default image for twitter cards with Yoast?
- Overwriting yoast’s og:meta output?
- yoast seo plugin – remove bulk title and description editor menu from non-admins [closed]
- Yoast SEO makes repeated INSERT queries loading any page
- how to add urls dynamically into the sitemap
- yoast sitemap xml
- Change Paginated Blog Canonicals
- Preview Problem Yoast SEO
- My wordpress website showing 2 titles in source code how can i fix this issue
- Separate Sitemaps for Each Language with Polylang and Yoast SEO
- WordPress SEO by Yoast: Hide Meta Boxes in Posts for Non-admins
- Allowing Yoast SEO plugin to track me
- Set Custom Post feature image as og:image
- Inserting Post Using wp_insert_post. How to Fill Yoast Plugin SEO Fields
- add post content in meta description in yoast
- Hide Meta Boxes for Non-Admins
- Yoast Sitemap grouping external sitemaps [closed]
- Add custom taxonomy to title tag [closed]
- Need Help Correct Regular Expression Redirect Code
- WordPress appends RSS item with unwanted content
- Yoast SEO: title tags are repeating my website name and slogan [closed]
- Overwrite YoastSEO meta-tags with another page’s [closed]
- Getting error when trying to implement site-wide breadcrumbs in Twentytwentyone Theme [closed]
- How to ensure that a landing page created with WordPress does not enter the sitemap?
- Yoast SEO plugin “could detect no serious SEO problems” on dashboard
- Where does the Yoast SEO plugin set the Open Graph metadata?
- Remove YoastSEO meta description from output/source [closed]
- Where does Yoast SEO plugin sets the site/page title?
- How to rewrite title- and meta-description templates for page templates in Yoast Plugin [closed]
- Help in using SEO Plugins: SEO Ultimate And Yoast SEO Plugin
- How to remove Date from Meta Description on SERP?
- How to add custom options for plugin into the add post screen – like yoast seo
- charset problem in wordpress because of nginx config
- Conflict calling an add_filter() twice
- Yoast taking over my WordPress title tag [closed]
- WordPress yoast seo plugin – parse snippet var in meta description
- YOAST Seo xmlsitemap menu item not showing in the dashboard [closed]
- Remove Meta-boxes (Yoast SEO plugin) [duplicate]
- custom wordpress theme and yoast seo injecting text in body
- Is it possible to change the permalink structure without changing the old permalinks to posts and without 301 redirects?
- How to get an archive page meta?
- WordPress replaces “https://” with “//” for Site & WordPress-URL
- WooCommerce related product – only show from primary category
- Extract all users along with yoast metadata description
- Yoast – Custom Taxonomy – primary category
- Linkedin not returning right info
- Tagline showing instead of meta description!
- Yoast Seo noindex added to pages outside wordpress
- How to add query string at the end of sitemap Yoast SEO