How to Add Meta Tags in WordPress With/Without Plugin?

Meta tags are tags added to the HTML code on the website and allow search engines to understand the content of the relevant page. Basically, the uses of meta tags on a website are: to define title, description, keywords, images and other data. Meta tags are important for SEO and you need to add them appropriately to the pages on your website. These are very important codes for search engine bots to scan and understand the content of the page properly. In this content, especially for beginners, I will try to answer the question “How to Add Meta Tags in WordPress With/Without Plugin?”. If you can’t do it, you can write to me in the comments section or on Whatsapp.

How to add meta tags in WordPress for beginners?

You can easily add it with WordPress meta tag plugin. You can add it without a plugin, but if you are a beginner, I recommend using a plugin. Because you can add it easily with the plugin. Below, I have given information in separate headings about how you can add meta tags with or without using a plugin.

How to add meta tags in WordPress with plugin?

The easiest way to add SEO meta tags in WordPress is to use a plugin. For this, you need to use an SEO plugin. The best SEO tools you can use are:

  • All in One SEO,
  • Yoast SEO,
  • Rank Math Pro.

All you have to do is activate one of the SEO tools above by installing it from the WordPress plugins section. I use Yoast SEO in my projects and I am quite satisfied. Below I explained how you can add meta tags using SEO tools.

1.Adding meta tags with Yoast SEO

  • First of all, if you haven’t installed it yet, install and activate the Yoast SEO plugin from the plugins section. If you don’t know how to do it, you can visit our page on how to install a plugin in WordPress.
  • Continue by clicking “Page” or “Post” from the “New” section in the WordPress panel. You will see the “Yoast Seo” section at the bottom of the page or in the side panel.
  • In this section, write your keyword in the “Focus Keyword” section.
  • In the “WordPress add description meta tag” section , write a sentence that summarizes your article. Your sentence should not exceed the limited number of characters.
  • That’s all. You can edit and publish your content. The description you enter in the Meta description section will be published as the Meta tag of your page.

2.Adding meta tags with All in One SEO Pack

  • Install and activate the All in One SEO Pack plugin in the WordPress panel.
  • Then edit the meta tags and descriptions of your website’s home page in the All in one Pack Settings section. When you add a new post, briefly write in one sentence what your content is about in the “Meta Description” section. Use your keyword in the meta description.
  • Thus, you add meta tags to your content and home page with the All in One SEO plugin.

3.Adding meta tags with Rank Math Seo

  • First, install and activate the Rank Math plugin.
  • Then, go to the Rank Math settings section and determine meta tags for the home page, categories, and content.
  • Create a new post or page and write a short sentence containing your content-related keyword in the Meta Description section of the Rank Math section. Thus, meta tags will be added with Rank Math.

How to add meta tags in WordPress without plugin?

You can add WordPress meta tags without plugins.. However, this is an arrangement that can be used by those who have a little more advanced knowledge about WordPress. If you want to add meta tags without using a plugin, follow the steps below;

  • To enter meta tags without a plugin, you must edit the theme file. If you wish, you can do this from the Themes-Customize section of the WordPress panel, or you can do this via Cpanel or other panels you use.
  • For an example of editing the meta tag on the homepage, first open the “header.php” folder.
  • To add a page description, use this code: < meta name=”description” content=”Page description goes here”. >
  • To add keyword meta tags for the homepage, you can place the following code in the HTML file: < meta name=”keywords” content=”keyword1, keyword2, keyword3″ >
  • Then it will be enough to update/save the page.

How to add meta tags to images in WordPress?

Adding meta tags to images in WordPress is important for SEO. Search engines understand what the images are about through alt tags. Therefore, you need to enter what your image is related to in the Meta alt tag. This process is quite simple. Click on the image. On the page that opens, enter a sentence of 3-4 words about your image in the “Meta Tag” section. This way, search engines will be able to understand what your image is about when scanning it.

Php add meta tag to head

  • To add meta tags to the header section in PHP, follow the steps below;
  • header Open the php file.
  • Add meta tags between and <head> tags.
  • Save the file.
Photo of author


Hello. I'm Mehmet K. I am a SEO and Finance specialist. I share content that will guide those who want to make money on my website. If you want to earn money online, you are at the right place. Hope you have a good time :)

Leave a Comment