Why do I get a 404 for my sitemap index after installing Yoast? [closed]

Go to Admin > Settings > Permalinks and click save without altering anything “Sometimes resetting the permalink structure will quickly solve a 404 error from a recent change to your installation.” See http://kb.yoast.com/article/77-my-sitemap-index-is-giving-a-404-error-what-should-i-do for further details

Custom Yoast Breadcrumbs URL

That’s an unusual setup – Yoast usually recognizes the right permalinks. You may want to consider changing the way you set up your custom post type, so that it has the desired names and URLs to begin with. You’re likely to have two different URLs that point to the same content, which is undesirable for … Read more

Removing “Noindex, follow” from pages [closed]

Ooohhh you mean “pagination” pages. Gotcha now! It’s hard to say for sure(I know I know), but at first glance it looks like this block of code would be what you’re after: if ( $wp_query->query_vars[‘paged’] && $wp_query->query_vars[‘paged’] > 1 && isset( $options[‘noindex-subpages’] ) && $options[‘noindex-subpages’] ) { $robots[‘index’] = ‘noindex’; $robots[‘follow’] = ‘follow’; } }

Set Custom Post feature image as og:image

It appears that your site doesn’t use the core WordPress Featured Image feature but instead uses a custom image field (probably from Advanced Custom Fields). Yoast’s plugin, Jetpack, and presumably many others look for the Featured Image image when setting the opengraph meta tag. So you have two options: Use the core Featured Image feature … Read more

Allowing Yoast SEO plugin to track me

For reference the file that handles the tracking and usage statistics for Yoast SEO is located at, path/to/wp-content/plugins/wordpress-seo/admin/class-tracking.php I have linked to the GitHub repository file in question for further inspection upon which you can see somewhat, relatively, harmless collection of data. However what you determine as “harmless” is case dependent because the opposite could … Read more

How can I modify the Capability needed to access a plugin’s options?

Maybe this isn’t the best method because it does give an editor access to Settings and Options, but what this does is gives the a specific editor (based on user ID) the permissions to edit options. We then test if we’re loading one of the options template, if we are AND the user id is … Read more

Advanced Custom Fields and Yoast SEO keyword analysis [closed]

Looking at the filter: $post_content = apply_filters( ‘wpseo_pre_analysis_post_content’, $post->post_content, $post ); it would be a matter of adding your fields content to string being analyzed. You have to do the get_field() part right, this is untested: add_filter( ‘wpseo_pre_analysis_post_content’, ‘filter_yoasts_wpse_119879’, 10, 2 ); function filter_yoasts_wpse_119879( $content, $post ) { $fields = get_field( ‘name’, $post->ID ); return … Read more

How to roll back a WordPress plugin update?

Unless the plugin has made significant database changes, you could follow these steps to downgrade it: Download and extract the old version from the plugin repository Disable the plugin Log on to your server with FTP or SSH Upload the old plugin directory to wp-content/plugins/. (You would want to overwrite the newer version.) Reactivate the … Read more