SEO & Analytics

How to Add Meta Description in WordPress

Beginner guide to better snippets and higher click through rates

Learning how to add a Meta Description in WordPress helps search engines and visitors understand your content before they click. Instead of letting Google grab random text, you can control the short summary that appears in search results.

In this guide you will install or configure an SEO plugin, add meta descriptions to posts, pages, and your homepage, and optionally set up a simple code method if you prefer not to use a plugin.

What You Need to Start

  • Access to your WordPress dashboard with a Administrator account.
  • A recent backup or a staging site that you can safely test on.
  • Optionally, a WordPress SEO plugin such as Yoast SEO, Rank Math, or All in One SEO.
  • Basic familiarity with opening and editing a post or page in WordPress.

Step 1: Understand Meta Description in WordPress

Before you start editing settings, understand what a meta description does so you can write better ones. A clear description improves click through rate even if your ranking does not change.

  1. Open a new browser tab and search for your brand or site name on Google.
  2. Look at how your own pages and competitors appear under the blue title link.
  3. Identify which snippets look clear and inviting and which look cut off or confusing.
  4. Write down a few phrases that make you want to click so you can copy the style later.

This example search results page shows where the title and meta description appear under each result.

WordPress post editor showing Yoast SEO plugin interface with focus keyphrase, Google search appearance preview, and meta description.
A view of the WordPress post editor showing the Yoast SEO plugin with keyphrase optimization and Google search preview settings.

Once you see how important this text is, you are ready to configure WordPress so you can control those descriptions yourself.

Step 2: Install a WordPress SEO Plugin

The easiest way to manage meta descriptions in WordPress is with an SEO plugin. This example uses Yoast SEO, but Rank Math or All in One SEO follow a very similar process.

  1. Log in to your WordPress dashboard at yourdomain.com/wp-admin.
  2. In the left menu, go to Plugins » Add New.
  3. In the search box, type Yoast SEO.
  4. Click Install Now next to the Yoast SEO plugin.
  5. After installation finishes, click Activate.
  6. Follow the basic setup wizard if it appears, choosing options that match your site type.

This screen shows the Add Plugins page after searching for Yoast SEO and the Install Now and Activate buttons.

WordPress Add Plugins screen displaying search results for 'Yoast SEO', with both Yoast SEO and Rank Math SEO plugins listed for managing site SEO.
The WordPress ‘Add Plugins’ page, showing search results for SEO plugins like Yoast SEO and Rank Math SEO, which are vital for managing meta descriptions.
Install only one SEO plugin at a time. Running Yoast SEO together with other SEO plugins may cause duplicate tags or conflicts.

If you want more guidance, you can also follow the full tutorial in How to install a plugin in WordPress.

Step 3: Add Meta Description to Posts and Pages

Now that the plugin is installed, you can edit the meta description for individual posts and pages. You will do this inside the editor for each piece of content.

  1. In the left menu, go to Posts » All Posts or Pages » All Pages.
  2. Hover over the item you want to edit and click Edit.
  3. Scroll down below the main content area until you see the Yoast SEO meta box.
  4. Make sure you are on the SEO tab, then locate the Meta description field.
  5. Type a concise summary of the page that includes your main keyword and a benefit to the reader.
  6. Watch the feedback bar under the field. Keep typing until it shows an optimal length, then stop.
  7. Click Update or Publish to save your changes.

This view shows the post editor with the Yoast SEO snippet preview and Meta description field expanded under the content.

WordPress Gutenberg editor showing an SEO plugin's interface to add and generate meta descriptions, SEO titles, and slugs for a post.
The WordPress editor displaying an SEO plugin’s meta box for managing SEO title, slug, and meta description fields.
A strong meta description usually states what the page is about, who it helps, and why it is useful. Aim for one or two short sentences that match the promise of your title.

To verify success, click Preview in the snippet area and confirm that the title and description look complete and not cut off.

Step 4: Set Meta Description for Homepage and Archives

Your homepage and archive pages (like category lists) often get a lot of impressions in search results. Set custom meta descriptions here so visitors know what your site is about.

  1. In the left menu, go to Yoast SEO » Settings (or Search Appearance in some versions).
  2. Under Content types, find the section labeled Homepage or similar.
  3. In the Meta description box, enter a short description that summarizes your entire site.
  4. If you use a static page as your homepage, click the link to edit that page and set the meta description directly on the page instead.
  5. Scroll down and click Save changes.

This settings screen shows the Homepage meta description field inside the Yoast SEO settings panel.

Yoast SEO plugin settings in WordPress, showing the General Site Features screen with AI tools like Yoast AI and llms.txt options.
This image displays the Yoast SEO plugin’s General Site Features settings within the WordPress dashboard, highlighting available AI tools.

Repeat a similar process for Categories and Tags under the relevant Yoast settings sections so archive pages also get meaningful descriptions.

Step 5: Configure Default Meta Description Templates

If you publish often, manually writing every single meta description can be slow. Yoast lets you set templates that use variables for titles, excerpts, and more.

  1. From the WordPress dashboard, go to Yoast SEO » Settings.
  2. Open the Content types section and click Posts.
  3. Find the Meta description template field.
  4. Use variables such as Excerpt or Title (often inserted via an Insert variable button) combined with a short call to action.
  5. Repeat for Pages, and any custom post types such as Products if you run WooCommerce.
  6. Click Save changes when you are done.

This example shows the Yoast template editor with variables inserted in the Meta description field for posts.

Yoast SEO settings in WordPress showing how to add and configure the meta description for posts, including options for SEO title variables.
Configure default SEO title and meta description templates for WordPress posts using Yoast SEO plugin settings.

After saving, create or edit a test post and confirm the generated meta description looks sensible. You can still override it per post when needed.

Step 6: Add Meta Description Without a Plugin

If you prefer not to use an SEO plugin, you can still add a meta description using a custom field and a small code snippet. Always work on a child theme or a custom functionality plugin so future updates do not erase your changes.

  1. Open a page or post in the WordPress editor where you want to control the description.
  2. In the top right, click the three dot Options menu and choose Preferences.
  3. Under the Panels section, enable Custom fields, then close the panel.
  4. Scroll down to the new Custom Fields box, click Enter new, set the Name to meta_description, and paste your desired text into Value.
  5. Click Add Custom Field, then click Update to save the post.
  6. Next, in the WordPress dashboard, go to Appearance » Theme File Editor.
  7. On the right, select your functions.php file (or better, the functions file of your child theme).
  8. Paste the following code at the bottom of the file, just above any closing PHP comment:
 * Output a meta description tag based on a custom field or site tagline.
 */
function wph_custom_meta_description() {
    if ( is_singular() ) {
        global $post;
        $meta_desc = get_post_meta( $post->ID, 'meta_description', true );
    }

    if ( empty( $meta_desc ) ) {
        $meta_desc = get_bloginfo( 'description' );
    }

    if ( $meta_desc ) {
        echo '<meta name="description" content="' . esc_attr( wp_strip_all_tags( $meta_desc ) ) . '" />' . "n";
    }
}
add_action( 'wp_head', 'wph_custom_meta_description', 1 );
If you edit theme files directly and later switch or update your theme, your changes can be lost. Use a child theme or a small custom plugin whenever possible.

WordPress also documents meta tags and header output in the official Meta Tags in WordPress guide.

This editor view shows the functions.php file with the meta description function pasted near the end.

WordPress Theme File Editor showing custom PHP code in functions.php to add a meta description function for SEO.
Editing the WordPress functions.php file to manually add a custom meta description function for improved SEO.

To verify the code is working, open any updated post on the front end, right-click, choose View page source, and confirm you see a <meta name="description"> tag with your text.

Step 7: Test and Improve Your Meta Descriptions

Once you have meta descriptions in place, test them regularly and refine them based on performance. Small wording changes can lead to more clicks without changing your rankings.

  1. Open a few key pages and use View page source in your browser to confirm the correct description tag appears.
  2. Wait for Google to recrawl your pages, then search for your main keywords and check how the snippets look in the results.
  3. Update any descriptions that are too generic, misleading, or cut off mid sentence.
  4. Use your analytics tools to monitor click through rate for important pages over time.
  5. When you find high performing snippets, reuse the style and structure on similar pages.

This sample search results view highlights a before and after comparison where a rewritten description increases click appeal.

For a deeper onpage strategy beyond meta descriptions, review the full WordPress seo complete beginners guide and WordPress seo complete beginners guide.

Conclusion You Are Ready to Go

You have learned how to add a Meta Description in WordPress using an SEO plugin and a lightweight custom code option. You can now control how your posts, pages, and homepage appear in search results instead of relying on random snippets.

Keep refining your descriptions as you publish new content, and combine them with solid titles and onpage optimization. Over time this will improve click through rates and help more of the right visitors choose your site.

Further Reading

Frequently Asked Questions

Do I really need a meta description for every post

You do not need to write a meta description for every single post, but you should for your most important content. A hand written description usually performs better than an automatically generated one. For large sites, use templates for less important posts and write custom descriptions for high traffic or high value pages.

Will meta descriptions change my Google rankings

Meta descriptions are not a direct ranking factor, but they strongly influence click through rate. Higher click through rate can indirectly help performance over time. Think of the meta description as an advertisement for your page in the search results.

Why is Google showing a different description than I wrote

Google sometimes chooses a different snippet if it thinks another part of your page better matches the search query. This is normal. To reduce the chances of this happening, make sure your written meta description closely matches the real content and main keywords on the page.

How long should my meta description be

Aim for roughly 140 to 160 characters. Too short and you miss chances to tell users why the page is helpful. Too long and search engines may cut off the text. Most SEO plugins show a length indicator you can use as a guide while you type.

Can I manage meta descriptions without installing any plugins

Yes. You can create a custom field called meta_description and add a short code snippet to your child theme or a small custom plugin to output the tag in the head section. However, most beginners find it much easier and safer to use a well maintained SEO plugin.

Should I reuse the same meta description on many pages

No. Reusing the same meta description across many pages makes it hard for searchers to tell which result is right for them. Write unique descriptions that clearly explain what is different about each page, especially for important posts, landing pages, and product pages.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button