Yoast plugin is not showing meta description and meta keyword

0 votes
I set up Yoast on my WordPress website and I put title, focus keyword, and meta description for every single page of my website manually in Yoast widget. This shows up under the page but unfortunately the meta description and keywords is not appear on the page source. Is there any additional configuration required after installation of Yoast in header.php or somewhere in files?
Feb 23 in Others by Kichu
• 19,040 points
58 views

1 answer to this question.

0 votes
function set_head_keywords() {
    $id = get_the_ID();
    if (!$id) return;
    $meta = get_post_meta( $id, '_yoast_wpseo_focuskw', true );
    echo '<meta name="keywords" content="'.$meta.'" />';
}
add_action( 'wp_head', 'set_head_keywords' );
copy paste this code in your function.php and it will work fine 
answered Feb 24 by narikkadan
• 11,280 points

Related Questions In Others

0 votes
1 answer

Yoast SEO remove og description and twitter description on certain page

try this out it wil help ...READ MORE

answered Feb 11 in Others by narikkadan
• 11,280 points
102 views
0 votes
1 answer

Avoid Duplicate Meta Description and Keywords in Next.js

First of all take a deep look ...READ MORE

answered Feb 22 in Others by narikkadan
• 11,280 points
692 views
0 votes
1 answer

Yoast SEO - remove og:description and twitter:description

add_filter("wpseo_opengraph_desc", "remove_yoast_og"); add_filter("wpseo_twitter_description", "remove_yoast_og"); function remove_yoast_og($description) { ...READ MORE

answered Feb 27 in Others by narikkadan
• 11,280 points
145 views
0 votes
1 answer

What is the difference between hadoop and google analytics ?

I will try and answer this as ...READ MORE

answered Aug 22, 2018 in Others by Frankie
• 9,830 points
786 views
0 votes
1 answer

how to show the <meta> values of yoast seo with some function?

check this folder : wordpress-seo\src\presenters\open-graph you can ...READ MORE

answered Feb 10 in Others by narikkadan
• 11,280 points
76 views
0 votes
1 answer

adding meta keyword in wordpress using yoast seo plugin.

You can use Advance Custom Fields plugin ...READ MORE

answered Feb 28 in Others by narikkadan
• 11,280 points
78 views
0 votes
1 answer

Problem with yoast SEO

This is (probably) not a problem of ...READ MORE

answered Feb 10 in Others by narikkadan
• 11,280 points
33 views
0 votes
1 answer

How to echo WP SEO Yoast synonyms in PHP?

 the meta_key in wp_postmeta table is _yoast_wpseo_keyword ...READ MORE

answered Feb 10 in Others by narikkadan
• 11,280 points
190 views
0 votes
1 answer
0 votes
1 answer

How to add meta keyword in wordpress using yoast seo plugin.?

if you dont want to use code ...READ MORE

answered Feb 12 in Others by narikkadan
• 11,280 points
107 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP