Yoast SEO Plug In and my Theme duplicating code. Need some feedback on what to do? [closed]

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

Override methods in Yoast SEO breadcrumb class

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

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 ); }

Genesis / custom template page / setting the page title and meta desc

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);

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)