Overwriting yoast’s og:meta output?

Use the wpseo_opengraph_title filter: function wpse_187763_wpseo_opengraph_title( $title ) { if ( is_singular() && $post = get_queried_object() ) { if ( $_title = get_post_meta( $post->ID, ‘custom_field_key’, true ) ) $title = $_title; // Override title with custom meta title } return $title; } add_filter( ‘wpseo_opengraph_title’, ‘wpse_187763_wpseo_opengraph_title’ ); Update: The single = is intended, since we’re assigning … 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 ); }

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)