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

Missing content on author archive page

Fixed. I used code: <div class=”panel callout radius”> <?php echo get_avatar( get_the_author_meta( ‘user_email’ ), ’96’ ); ?> <div class=”right”> <a href=”https://twitter.com/<?php the_author_meta( ‘twitter’ ); ?>” target=”_blank”><i class=”fi-social-twitter size-24″></i></a>&nbsp; <a href=”<?php the_author_meta( ‘facebook’ ); ?>” target=”_blank”><i class=”fi-social-facebook size-24″></i></a>&nbsp; <a href=”mailto:<?php the_author_meta( ’email’ ); ?>”><i class=”fi-mail size-24″></i></a> Then I found out this function could only be used … Read more

Category Name and Slug field need to be the same otherwise it breaks category pages

I can’t comment yet, but I can answer – I think your problem may be that you’ve declared your $terms variable twice in your code, within your loop: <?php $terms = get_the_terms( $post->id, ‘knowledgebase_types’ ); ?> and <?php $terms = get_the_terms( $post->post_id, ‘knowledgebase_topics’ );?> Though some more information about what result you are actually seeing … Read more

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