Turn off auto 301 on archive pages? [closed]

This is known bug. You can read something about this here: https://github.com/Yoast/wordpress-seo/issues/1109 michaelcurry there wrote a solution. Quick Fix – Put this into your functions file. add_action(‘wp_loaded’, ‘remove_actions’); function remove_actions() { remove_action( ‘wp’, array( $GLOBALS[‘wpseo_front’], ‘pagination_overflow_redirect’ ), 99 ); }

Changing Post Sitemap Frequency to Hourly [closed]

As it is explained here ‘wpseo_sitemap_’ . $filter . ‘_change_freq’ the $filter should be replaced with post type that you want to change, you can replace it with: homepage, blogpage, $post_type . ‘_archive’, $post_type . ‘_single’, $c->taxonomy . ‘_term’, author_archive. while the $post_type variable based on WordPress Codex can be replaced with: Post (Post Type: … Read more

Fixing link rel=”next” in Yoast SEO for paginated links

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 … Read more

Prevent Yoast from removing the canonical tag if robots meta tag is set to noindex [closed]

Assuming this is an XY problem and the original question is: “How do I block crawlers from indexing my staging site?” Staging and production should be as close as similar. Having changes in code would be a big “no no” for me (except for some environment variables, e.g. setting WP_ENVIRONMENT_TYPE or db credentials). Instead, I … Read more