How to Add auto description on description meta tag on Your WordPress Website.
If you want add automatically description from site’s body to post page ?
Then, follow it.
Follow the tutorial.
Download Yoast Seo Plugin
To your computer.
Step – 2
Login to you wordpress site.
Go to yourwebsite.com/wp-login.php
Step – 3
After logging in Your WordPress site.
Click on Plugin + Add New from Left side.
Step – 4
Now, Click on Upload Plugin
Step – 5
Now, Browse Downloaded Yoast Seo Plugin from your computer, Where you download Plugin According to Step – 1 Above.
Step – 6
Now, Click on Active Plugin
Step – 7
If you have already install Yoast Plugin then Go to your admincp and Click on SEO – Search Appearance – Content Type from Left Slide Menu.
%%excerpt%% this code and past to Meta description template:
Thus you can add automatically title, description, category, tag, date etc.. text on your html meta tag.
All Meta Codes
|Date|| ||Replaced with the date of the post/page|
|Title|| ||Replaced with the title of the post/page|
|Parent title|| ||Replaced with the title of the parent page of the current page|
|Archive title|| ||Replaced with the normal title for an archive generated by WordPress|
|Site title|| ||The site’s name|
|Tagline|| ||The site’s tagline|
|Excerpt|| ||Replaced with the post/page excerpt (or auto-generated if it does not exist)|
|Excerpt only|| ||Replaced with the post/page excerpt (without auto-generation)|
|Tag|| ||Replaced with the current tag/tags|
|Category|| ||Replaced with the post categories (comma separated)|
|Primary category|| ||Replaced with the primary category of the post/page|
|Category description|| ||Replaced with the category description|
|Tag description|| ||Replaced with the tag description|
|Term description|| ||Replaced with the term description|
|Term title|| ||Replaced with the term name|
|Search phrase|| ||Replaced with the current search phrase|
|Separator|| ||The separator defined in your theme’s wp_title() tag.|
The following sample of variables requires a better understanding of SEO. If you’re unsure about how to correctly use this, don’t. Or you can purchase an online training course at Yoast.
|Post type (singular)|| ||Replaced with the content type single label|
|Post type (plural)|| ||Replaced with the content type plural label|
|Modified|| ||Replaced with the post/page modified time|
|ID|| ||Replaced with the post/page ID|
|Name|| ||Replaced with the post/page author’s ‘nicename’|
|User description|| ||Replaced with the post/page author’s ‘Biographical Info’|
|Page number|| ||Replaced with the current page number with context (i.e. page 2 of 4)|
|Pagetotal|| ||Replaced with the current page total|
|Pagenumber|| ||Replaced with the current page number|
|Caption|| ||Attachment caption|
|Focus keyword|| ||Replaced with the posts focus keyphrase|
|Term404|| ||Replaced with the slug which caused the 404|
|<custom-field-name> (custom field)|| ||Replaced with a posts custom field value. Remove the <>|
|<custom-tax-name> (custom taxonomy)|| ||Replaced with a posts custom taxonomies, comma separated. Remove the <>|
|<custom-tax-name> description (custom taxonomy)|| ||Replaced with a custom taxonomies description. Remove the <>|
If you have any issue then comment below here.