Blog · Development Tools

How to Add Meta Keywords in WordPress Without a Plugin (And Do They Help SEO?)

Dec 1, 2026By Vladimir Mrkela
Share LinkedInX
How to Add Meta Keywords in WordPress Without a Plugin (And Do They Help SEO?)

WordPress gives site owners control over many parts of a page, including the information shown behind the scenes in its HTML. That can make meta keywords seem like a useful way to describe a site to search engines, but their role in SEO is limited.

For people managing a WordPress site, knowing how meta keywords work—and how to add them without a plugin—helps avoid unnecessary changes and misplaced expectations.

Here’s what to know about adding them directly to your site.

Do Meta Keywords Help WordPress SEO?

Meta keywords won’t improve your WordPress rankings in Google, which stopped using them as a ranking signal years ago. Adding them to your site won’t move a page higher in search results, even if you choose terms carefully.

Meta keywords won’t boost your Google rankings; focus instead on useful content and clear, descriptive titles.

You’ll get better results by writing useful content, matching each page to a clear search need, and using descriptive titles and headings.

Meta keywords and search engine trust are separate issues. Google doesn’t reward or penalize your site just because you include this tag.

However, keyword metadata privacy concerns may matter: competitors can view the terms in your page source and learn what you’re targeting.

If you still want to add meta keywords for a specific tool or internal process, keep the list short and relevant.

Don’t expect the tag to improve your WordPress SEO, and don’t let it distract you from changes that help visitors.

What the Meta Keywords Tag Does: and Doesn’t Do

If you still plan to use the tag, it helps to know what it actually does. A meta keywords tag stores a short list of terms in your page’s HTML. Visitors usually won’t see it, but some older tools may read it.

The meta keywords history explains why you may still find the field in WordPress themes or guides.

It doesn’t improve rankings in major search engines, and it won’t replace useful page content. Treat it as optional metadata, not an SEO shortcut:

  • Add only terms that accurately describe the page.
  • Keep the list short and specific.
  • Don’t repeat the same phrase in different forms.
  • Avoid keyword stuffing risks, which can make metadata look spammy.
  • Check your site’s source code if you need to confirm the tag appears.

You can usually skip it and focus on clear titles and helpful content.

Back Up Your WordPress Site Before Editing

Before changing your WordPress site’s metadata or theme files, make a backup so you can restore the original settings if something goes wrong. Save both your site files and database, then confirm you can access the backup before making changes.

Backup item Why you need it
Database Keeps posts, settings, and metadata
Site files Preserves themes, uploads, and code
Backup location Protects a copy outside your hosting account

You can use WordPress backup plugins or your host’s backup tools. Choose a recent backup, and store a separate copy on your computer or cloud storage. Don’t rely on a backup that you haven’t checked.

Before editing, learn your host’s database restoration steps and where to find file restore options. If an error appears, restore the saved version rather than trying random fixes. You’ll have a clear way back.

Find Your Theme’s Header File

Open your WordPress Theme Editor and look for the header.php file in your active theme.

Before editing it, consider using a child theme so your changes won’t be lost when the theme updates.

Locate Theme Editor

To add a meta keywords tag, first locate the file that controls your theme’s page header. In your WordPress dashboard, use dashboard access to reach the theme tools.

The exact labels may vary by WordPress version and hosting setup, so check your site’s menu before proceeding.

  • Sign in to your WordPress dashboard with an account that can manage themes.
  • Select Appearance from the left-hand menu.
  • Choose Theme File Editor, sometimes called Theme Editor.
  • Check the theme name shown on the page to confirm you’re editing the active theme.
  • Review the file list on the editor screen and identify the header file you need.

This Theme file navigation step only gets you to the editor and helps you confirm the right theme. This step does not involve changing any files yet.

If you don’t see the editor, your host may disable it for security, or your account may lack permission. Don’t change files yet.

Open Header.Php

With the active theme confirmed, select its header file in the Theme File Editor, usually named header.php. Before you make changes, confirm that you’ve opened the file for the active theme, not an inactive theme with a similar name. The header file controls content placed in your site’s <head> section, so it’s the relevant place for a meta tag.

Before you edit

Back up files before changing them. You can download a copy of header.php through your hosting control panel’s file manager, or save its current contents in a text file. This gives you a way to restore the original if a mistake causes an error.

Find the right spot

Open header.php and look for the opening <head> tag. You’ll add code within that section, not after </head> or inside the visible page content. Don’t change other theme code while you edit header.php.

Use a Child Theme

If you need to edit header.php, use a child theme so your changes aren’t lost when the parent theme updates. First, check your hosting file manager or connect with SFTP, then locate your active theme’s folder under wp-content/themes.

Create a child theme if you don’t already have one, and copy header.php into its folder only when you need to override that file. The Child theme benefits include preserving your edits during parent theme updates, but you’ll still need to maintain the child theme.

Before editing, make a backup and confirm you’ve selected the active theme:

  • Find the parent theme’s folder.
  • Create or open your child theme folder.
  • Copy header.php into that folder.
  • Edit the child copy, not the parent file.
  • Test the site, then check theme override options if your theme uses another header template.

Add Meta Keywords to Your Theme’s Head

Google does not use the meta keywords tag to rank pages, so there is no SEO reason to add it. Only add the tag if a legacy integration explicitly requires it. Classic themes may output the document head from header.php, but block themes may not use that file, and some hosts disable dashboard file editing. Use a documented theme or plugin method and test changes on staging.

Before editing, confirm you’re using the child theme you set up, so an update won’t erase your changes.

Add the tag

  1. Only use the Theme File Editor if your host enables it and the theme supports this setup; otherwise, use the theme or plugin’s documented method. Avoid editing theme files from the dashboard.
  2. If your classic theme uses a child-theme header.php, locate its closing </head> tag. Block themes may not use this file.
  3. Add this line just above it:
Code
<meta name="keywords" content="WordPress development, custom plugins, WordPress support">

This shows the legacy tag syntax only; it is not an SEO recommendation. Place the tag in the document head only if a legacy integration requires it.

Use sample terms only if a legacy integration requires them. After using a supported method, inspect the page source to confirm the integration outputs the tag in the document head.

Google does not use this tag to rank pages, so adding it will not improve search rankings.

Add Meta Keywords to a Single WordPress Page

A custom field alone does not output a meta tag in a page’s head. Since meta keywords do not improve Google rankings, you normally do not need them. If a legacy integration explicitly requires per-page keywords, use its documented plugin or theme method to render the tag.

Open Page Editor

From your WordPress dashboard, open the page you want to update by going to Pages → All Pages and selecting Edit beneath its title.

The Page editor layout may look different depending on your WordPress version and whether you use the block editor or a page builder.

Before you continue, check that your account has editing permissions for this page. If you can’t edit it, ask an administrator to update your role or make the change for you.

  • Confirm you’ve opened the correct page by checking its title.
  • Review the existing content before making changes.
  • In the block editor, use the main canvas to view page content.
  • In a page builder, wait for its editing controls to load.
  • Keep the editor open while you locate the page’s settings.

You’re ready to find the appropriate field for page-level metadata.

Add Custom Field

With the page editor open, check whether your SEO plugin provides a field for meta keywords. If it does, enter your terms there and save or update the page.

If you’re working without a plugin, you can store the terms in a custom field, though WordPress won’t turn that value into a meta tag by itself.

Create a custom field

  1. Open the page’s settings panel and find the Custom Fields section. If it’s hidden, check the editor’s preferences or screen options.
  2. Select Add Custom Field, then enter a clear name, such as meta_keywords.
  3. Type your comma-separated keywords in the value box, for example, garden tools, pruning shears.
  4. Click Add Custom Field, then update the page.

Keep the field name consistent across pages. You’ll need to map field values to code later; for now, confirm the value is saved.

Insert Meta Tag

After saving the custom field, add code that reads its value and outputs a meta tag in the page’s head. Put the code in your theme’s functions.php file or a site-specific plugin, so a theme update won’t erase it.

Use this example, replacing the field key with yours:

PHP
add_action( 'wp_head', function () {

if ( ! is_singular( 'page' ) ) {
return;
}

$keywords = get_post_meta( get_queried_object_id(), 'meta_keywords', true );

if ( ! empty( $keywords ) ) {
echo '<meta name="keywords" content="' . esc_attr( $keywords ) . '">' . "\n";
}
} );

This Meta tag syntax escapes the value before printing it. For HTML head placement, wp_head adds the tag to the document head.

Check one page’s source to confirm it appears once.

  • Use the same field key you saved.
  • Separate keywords with commas.
  • Leave the field blank to omit the tag.
  • Test on the intended page.
  • Don’t expect keywords to improve Google rankings.

Keep Your Meta Tag After a Theme Update

If you add your meta keywords directly to a theme file, a theme update may erase them. To keep the tag, place your code somewhere that survives changes to the parent theme.

Use a child theme or site-specific plugin to preserve your meta keywords through theme updates.

The simplest option is a child theme. Copy the relevant header code into your child theme, then add the meta tag there. WordPress uses the child theme’s files while the parent theme can still receive updates.

Keep a backup before editing, and avoid changing the parent theme directly.

If you don’t use a child theme, add the code through a site-specific functionality plugin or your host’s supported custom-code feature. These options keep custom code separate from theme files.

Before updating, use theme update testing on a staging site to confirm your setup remains intact. Include the code in your Version control deployment process, so you can restore it if needed.

Check That Your Meta Keywords Tag Appears

How can you confirm the tag survived your changes? Open a page where you added meta keywords, then check the HTML your browser receives. You don’t need special software, just a few quick checks:

  • Visit the page on your site, not the WordPress editor.
  • Right-click the page and choose “View Page Source,” or use your browser’s view source shortcut.
  • Search the source for name="keywords" to find the meta tag.
  • Read the content value and confirm it matches the keywords you entered.
  • Check another page if you added tags in more than one place.

You can also open your browser’s developer tools and inspect markup in the Elements panel. Look inside the page’s <head> section.

If the tag appears there, your change is live. Remember, search engines may ignore meta keywords, so presence doesn’t guarantee ranking benefits.

Fix Common Meta Tag Errors

Seeing the meta keywords tag in your page source confirms it’s there, but it can still contain mistakes. Check the tag’s content for typos, stray punctuation, or terms that don’t match the page.

Check your meta keywords tag for typos, stray punctuation, and terms that don’t match the page.

Keep the list brief and relevant. Adding every possible variation can look like keyword stuffing, so remove repeated words and unrelated phrases.

Next, look for duplicate meta tags. Your theme, a custom code snippet, or another source may add a second keywords tag. Search the page source for “name=”keywords”” and confirm there’s only one.

If you find duplicates, remove the extra tag from the code that added it, then refresh the page source to verify the change.

If you edit your theme directly, save a backup first. A child theme or site-specific code area can help keep changes from being lost during theme updates.

Recheck the tag after updates or edits.

Focus on WordPress SEO That Can Improve Rankings

To improve your WordPress rankings, write clear title tags that match each page’s topic.

Create useful, easy-to-read content that answers your visitors’ questions, and earn relevant backlinks from trusted websites.

These steps support SEO alongside your meta tags.

Optimize Title Tags

Although meta keywords don’t affect rankings in major search engines, clear title tags still help WordPress pages appear relevant in search results. You can edit a page’s title in your SEO plugin or theme settings, then preview how it may appear in search.

  • Put the main topic near the beginning, so readers can quickly understand the page.
  • Keep the title tag length concise, usually around 50 to 60 characters, though search engines may display different lengths.
  • Write a distinct title for each important page to avoid confusing searchers.
  • Include your site name when it adds useful context, but don’t let it crowd out the topic.
  • Use title tag testing: compare clear wording and review search performance over time.

Make titles accurate, not merely catchy. Check them on mobile and desktop, and update titles that don’t match the page or earn clicks.

Avoid repeating keywords unnaturally. A straightforward title helps visitors decide whether your page answers their query.

Improve Content Quality

Strong WordPress SEO starts with content that answers readers’ questions clearly and completely. Before you publish, check whether your post solves the problem behind the search, not just repeats a target phrase.

Add Content depth by covering key steps, common mistakes, and useful details your reader needs. For example, if you explain how to add meta keywords, show where to edit the theme file and explain how to avoid breaking it.

Use clear headings to organize sections, short paragraphs to make them easy to scan, and examples where they clarify a step. Read the draft aloud, then remove repeated points and vague claims.

Add links to relevant pages on your own site when they help readers find related guidance. Strong reader engagement can signal that your content is useful, but rankings aren’t guaranteed. Keep it accurate, current, and focused.

Once your content is useful and clear, help the right sites find it. Relevant backlinks can support WordPress SEO by showing search engines that other sites value your page.

Focus on links that bring readers who care about your topic, not a high link count.

  • Find blogs, local groups, and industry sites that cover your subject.
  • Use Resource outreach to offer your page as a useful addition to an existing guide.
  • Try Digital PR by sharing original research, expert tips, or a timely story with journalists.
  • Personalize each message, explain why your page helps their audience, and include the exact URL.
  • Check links periodically, and avoid paid schemes or exchanges made only to manipulate rankings.

You can also link to your new page from related posts on your own site.

Keep outreach respectful, follow up once, and accept that some site owners won’t respond.

Useful links take time to earn, but they can bring qualified visitors as well as SEO value.

Frequently Asked Questions

Can I Use Different Meta Keywords for Each WordPress Post?

Yes, you can use different meta keywords for each WordPress post. Per post keyword customization requires adding WordPress post metadata through custom fields or code. However, search engines generally ignore meta keywords, so focus on relevant content instead.

Do Search Engines Penalize Websites for Keyword Stuffing in Meta Tags?

Yes, search engines may penalize you for meta tag stuffing, though Google largely ignores meta keywords. Avoid keyword spam penalties by writing natural, accurate metadata; stuffing keywords into titles or descriptions can hurt your visibility.

Can Meta Keywords Reveal My SEO Strategy to Competitors?

Yes, meta keywords can reveal your target terms to competitors who inspect your page source. Since search engines largely ignore them, protect keyword confidentiality by leaving the field empty; use private tools for competitor research instead.

Are Meta Keywords Used by Any Search Engines Today?

Major search engines like Google and Bing don’t use meta keywords for rankings. Some smaller or regional search engines may still consider them, but you shouldn’t rely on meta keywords in regional search engines; their meta tag relevance today remains limited.

What WordPress SEO Plugins Support Other Useful Metadata?

Yoast SEO, Rank Math, and AIOSEO support useful metadata beyond keywords. You can use them to manage titles, descriptions, canonical URLs, schema markup, Open Graph metadata, and Twitter card tags, helping your pages display more effectively across search results and social platforms.

Conclusion

You can add a meta keywords tag to WordPress by editing your theme’s header, but it won’t improve your Google rankings. If you still want the tag, back up your site first, add it carefully, and check that it appears in your page source. Use a child theme or another update-safe method so your code won’t disappear during a theme update. For SEO, focus instead on useful content, clear page titles, and a site that works well on mobile.

Tags
  • Meta Keywords
  • Search Rankings
  • WordPress SEO

About the author

Vladimir Mrkela

Vladimir Mrkela

Senior WordPress Developer

I’m a senior WordPress developer and co-founder of Pixel Industry. I’ve spent more than 12 years building websites, custom plugins, and integrations for all kinds of projects. I enjoy working on complex architecture, solving tricky problems, and sharing what I learn along the way.

Ready to build?

Have a WordPress project that needs expert judgment?

Get a Free ConsultationTell us about your project and we will get back to you soon.