{"id":1375,"date":"2006-06-12T14:38:11","date_gmt":"2006-06-12T09:08:11","guid":{"rendered":"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/"},"modified":"2026-10-28T13:41:17","modified_gmt":"2026-10-28T08:11:17","slug":"how-to-insert-meta-description-tags-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/","title":{"rendered":"How to Add a Meta Description in WordPress (With or Without a Plugin, 2026)"},"content":{"rendered":"<p>In 2006 WordPress didn&#8217;t create a meta description for each post, so we edited header.php and used conditional tags to print the excerpt. WordPress core still doesn&#8217;t add one, but SEO plugins now make it a one-field job. Here&#8217;s how to add a <strong>meta description in WordPress<\/strong> in 2026, with or without a plugin.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-large wp-image-64688\" src=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/meta-description-wordpress-1024x538.webp\" alt=\"Meta description in WordPress\" width=\"1024\" height=\"538\" srcset=\"https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/meta-description-wordpress-1024x538.webp 1024w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/meta-description-wordpress-300x158.webp 300w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/meta-description-wordpress-150x79.webp 150w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/meta-description-wordpress-768x403.webp 768w, https:\/\/www.quickonlinetips.com\/archives\/wp-content\/uploads\/meta-description-wordpress.webp 1200w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><strong>Quick answer:<\/strong> Install an SEO plugin such as Rank Math, Yoast SEO or All in One SEO, open any post, and type your description into the plugin&#8217;s snippet editor (aim for about 120-160 characters with your main keyword). Without a plugin, add a small function to your theme&#8217;s functions.php that prints the post excerpt as a meta description in wp_head.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_89 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6af72e773607e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #1a202c;color:#1a202c\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #1a202c;color:#1a202c\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6af72e773607e\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#What_a_meta_description_does\" >What a meta description does<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#Add_a_meta_description_in_WordPress_with_a_plugin\" >Add a meta description in WordPress with a plugin<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#Rank_Math\" >Rank Math<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#Yoast_SEO\" >Yoast SEO<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#All_in_One_SEO_and_SEOPress\" >All in One SEO and SEOPress<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#Add_a_meta_description_without_a_plugin\" >Add a meta description without a plugin<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#Watch_out_for_automatic_descriptions\" >Watch out for automatic descriptions<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#Meta_description_best_practices\" >Meta description best practices<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#Check_your_meta_description\" >Check your meta description<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#FAQ\" >FAQ<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#Does_WordPress_add_meta_descriptions_automatically\" >Does WordPress add meta descriptions automatically?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#Should_I_let_my_plugin_generate_meta_descriptions_automatically\" >Should I let my plugin generate meta descriptions automatically?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#Why_does_Google_show_a_different_description\" >Why does Google show a different description?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.quickonlinetips.com\/archives\/2006\/06\/how-to-insert-meta-description-tags-in-wordpress\/#How_do_I_add_a_meta_description_to_my_WordPress_homepage\" >How do I add a meta description to my WordPress homepage?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What_a_meta_description_does\"><\/span>What a meta description does<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The meta description is a short summary in your page&#8217;s HTML head. Search engines may show it under your title in results. It isn&#8217;t a direct ranking factor, but a clear, relevant description can improve clicks. Google often rewrites it to match the search, so write it for people, not just keywords.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Add_a_meta_description_in_WordPress_with_a_plugin\"><\/span>Add a meta description in WordPress with a plugin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Rank_Math\"><\/span>Rank Math<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Edit the post and open the Rank Math panel.<\/li>\n<li>Click Edit Snippet and type in the Description field.<\/li>\n<li>Set a default template for posts under Rank Math &gt; Titles &amp; Meta.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Yoast_SEO\"><\/span>Yoast SEO<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ol>\n<li>Scroll to the Yoast SEO box below the editor (or open the sidebar).<\/li>\n<li>Fill in the Meta description field in Search appearance.<\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"All_in_One_SEO_and_SEOPress\"><\/span>All in One SEO and SEOPress<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Both add a Meta Description field under the editor, with character counters and previews.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Add_a_meta_description_without_a_plugin\"><\/span>Add a meta description without a plugin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Use a child theme or a code snippets plugin and add:<\/p>\n<pre><code>add_action('wp_head', function () {\n  if (is_singular()) {\n    $desc = wp_strip_all_tags(get_the_excerpt());\n    echo '&lt;meta name=\"description\" content=\"' . esc_attr(wp_trim_words($desc, 30)) . '\"&gt;' . \"\\n\";\n  }\n});<\/code><\/pre>\n<p>Write a custom excerpt for each post (enable Excerpt in the editor sidebar) for better results. Don&#8217;t use this alongside an SEO plugin, or you&#8217;ll get duplicate tags.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Watch_out_for_automatic_descriptions\"><\/span>Watch out for automatic descriptions<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Plugins and code that build the description from the first 20 or 30 words of a post have a catch, which we learned in 2007 with the Head Meta Description plugin. If your opening sentences are an anecdote or background, the description may say nothing about the page. Either write a custom excerpt or description for important posts, or get into the habit of putting a one-line summary with your main keyword in the first sentence. SEO plugins have the same issue: Rank Math and Yoast fall back to the opening text when you leave the description empty.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Meta_description_best_practices\"><\/span>Meta description best practices<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>Keep it around 120-160 characters so it isn&#8217;t cut off.<\/li>\n<li>Include the main keyword naturally; Google bolds matching words.<\/li>\n<li>Make each description unique.<\/li>\n<li>Summarise the benefit or answer, and add a reason to click.<\/li>\n<li>Avoid quotes and keyword stuffing.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Check_your_meta_description\"><\/span>Check your meta description<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Google explains how it picks snippets in its <a href=\"https:\/\/developers.google.com\/search\/docs\/appearance\/snippet\" rel=\"noopener\" target=\"_blank\">snippet documentation<\/a>.<\/p>\n<p>View the page source (Ctrl+U) and search for name=&#8221;description&#8221;, or use the URL Inspection tool in Google Search Console. For more SEO settings, see how to <a href=\"https:\/\/www.quickonlinetips.com\/archives\/2020\/04\/noindex-archive-subpages-yoast-seo-plugin\/\">noindex archive subpages with Rank Math and Yoast<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Does_WordPress_add_meta_descriptions_automatically\"><\/span>Does WordPress add meta descriptions automatically?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>No. WordPress core doesn&#8217;t, so you need an SEO plugin or custom code.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Should_I_let_my_plugin_generate_meta_descriptions_automatically\"><\/span>Should I let my plugin generate meta descriptions automatically?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Only as a fallback. Automatic descriptions use the first lines of the post, which may not summarise it. Write custom descriptions for your most important pages.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Why_does_Google_show_a_different_description\"><\/span>Why does Google show a different description?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Google rewrites snippets when it thinks other text on the page better matches the search.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"How_do_I_add_a_meta_description_to_my_WordPress_homepage\"><\/span>How do I add a meta description to my WordPress homepage?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>In Rank Math or Yoast, set it under the homepage settings, or edit the static front page&#8217;s SEO field.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In 2006 WordPress didn&#8217;t create a meta description for each post, so we edited header.php and used conditional tags to&#8230;<\/p>\n","protected":false},"author":4,"featured_media":64688,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[6,41],"tags":[17],"class_list":["post-1375","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogging","category-search-engine-optimization","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/1375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/comments?post=1375"}],"version-history":[{"count":3,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/1375\/revisions"}],"predecessor-version":[{"id":68509,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/posts\/1375\/revisions\/68509"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media\/64688"}],"wp:attachment":[{"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/media?parent=1375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/categories?post=1375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.quickonlinetips.com\/archives\/wp-json\/wp\/v2\/tags?post=1375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}