Site logo

Archived topic

Adding Meta Keywords

11 replies · Started by Brett on August 17, 2018

Viewing posts 1–12 of 12

My client wants to add Meta Keywords to each individual pages. It appears like Yoast removed that from their plugin. Is this something that ACF would be good to use? If so, would I add some sort of code to functions.php?

Thank you!

Hi there,

You could, then you'd just need to output the custom field in the wp_head hook like this.

You could also try a plugin like the SEO Framework.

Yoast should technically still have the option - maybe it's just turned off by default?

I understand your comment about using the hook, but was there supposed to have been a piece of code there to echo out the ACF string for each page?

That worked. Thank you!!!

You're welcome :)

Hi can you please let me know where do i insert key words in the following code, i want to add meta keywords in generatepress hook

<?php
$keywords = get_field( 'your_key' );
if ( $keywords ) {
echo '<meta name="keywords" value="' . $keywords . '" />';
}
?>

Eg: my key words are red, blue, yellow, green

Hi there,

the original topic owner is using the ACF Plugin. Are you using ACF?

I am not using ACF, I want to insert meta keywords to my wordpress website

Are you using an SEO plugin? As those generally provide Keyword and Description Meta fields.

I use Yoast unpaid version, it has meta key phrase, is it meta key words?

This archived topic is closed to new replies.