Yoast plugin is not showing meta description and meta keyword can i get an answer

0 votes
I set up Yoast on my WordPress website and I put title,ocus 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 19 in Others by Kichu
• 19,040 points
32 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' );
use this code to function.php and t will work



answered Feb 20 by narikkadan
• 10,640 points

Related Questions In Others

+2 votes
0 answers

how can i download and install setookit?

Nov 30, 2019 in Others by anonymous
• 140 points
499 views
+1 vote
1 answer
–1 vote
0 answers
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
• 10,640 points
66 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
• 10,640 points
40 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
• 10,640 points
28 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
• 10,640 points
107 views
0 votes
1 answer

Yoast plugin is not showing meta description and meta keyword

function set_head_keywords() { $id ...READ MORE

answered Feb 24 in Others by narikkadan
• 10,640 points
40 views
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
• 10,640 points
83 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