Yoast SEO plugin – Sitemap links greyed out & page priority
Grey links are how it styles visited ones. Priority is mostly for indexing purposes (as is rest of sitemap), I highly doubt is has any impact on search engine ranking.
Grey links are how it styles visited ones. Priority is mostly for indexing purposes (as is rest of sitemap), I highly doubt is has any impact on search engine ranking.
As far as my usage with Yoast’s WordPress SEO plugin goes, I thought always assumed the plugin simply replaced any existing code with what it generates for that same purpose. If you are using the plugin and don’t want to disable it, then simply go into your header.php file and delete/comment-out any meta tags that … Read more
It will use what’s in your theme to write the meta tags. Just enable meta tags in the yoast options as by default this is OFF and then go view your site. However you’ll also need to set something for the Meta field from the Post tab You can also choose the option to force … Read more
See WordPress SEO by Yoast: Hide Meta boxes in posts for non-admins add_action(‘add_meta_boxes’, ‘yoast_is_toast’, 99); function yoast_is_toast(){ //capability of ‘manage_plugins’ equals admin, therefore if NOT administrator //hide the meta box from all other roles on the following ‘post_type’ //such as post, page, custom_post_type, etc if (!current_user_can(‘activate_plugins’)) { remove_meta_box(‘wpseo_meta’, ‘post_type’, ‘normal’); } }
In cases like this, open the plugin files in a good code editor and search for the elements you need, as there may be an useful hook. So, for this we have the filter wpseo_breadcrumb_single_link. Maybe you can replace span for li in $link_output, or use $link to build your own: add_filter( ‘wpseo_breadcrumb_single_link’, ‘filter_breadcrumb_wpse_88254’, 10, … Read more
Well, the basic idea is to put this line into your header.php: <link rel=”canonical” href=”http://YOUR-DOMAIN.TLD<?php echo $_SERVER[“REQUEST_URI”]; ?>” /> You now have to test cases (if you want to apply the link to certain pages only). See $_SERVER for documentation.
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 ); }
Just look to plugin… There is a hook filter for replacements wpseo_replacements, so code can look something like this… add_filter(‘wpseo_replacements’, ‘city_wpseo_replacements’); function city_wpseo_replacements($vars){ $vars[‘%%city%%’] = ‘some city’; return $vars; }
Yoast Support kindly provided me with the following reference: https://yoast.com/wordpress/plugins/seo/api/ Using the following filters calling my own functions, I was able to change everything in the header based on dynamic content. add_filter(‘wpseo_title’, ‘setPageTitle’, 10); add_filter(‘wpseo_metadesc’, ‘setMetaDesc’, 10); add_filter(‘wpseo_canonical’, ‘setCanonical’, 10); add_filter(‘wpseo_opengraph_image’, ‘setOG_Image’, 10); add_filter(‘the_title’, ‘setTitle’, 10);
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