WordPress title, Keywords and description, the reason is concise, it is to stand in the perspective of SEO to consider.
First of all, now the keyword this tag has been thrown into the history of the search engine garbage heap, so this keywords tag has been useless, do not write.
Second, the role of the description is already very small, in addition to the first page, category pages, tabs, the best custom description, the article page description is not written, the search engine will automatically invoke the content of the article to show the search results page description. That is to say, description This tag appears on the homepage, the category page and the tab page of these important aggregation pages.
OK, look at the concise WordPress title, Keywords and description is how to write
<title><?phpif (Is_home () &&!is_paged ()) {$title =get_bloginfo ("name"). "-". Get_bloginfo ("description");} else{$title =wp_title ("-", True, "right"); Bloginfo ("description");} if ($paged <2) {echo $title;} Else{echo "$title & #8211; Page $paged ";}?></title><?php if (is_home ()) {?><Metaname= "description"content= "This is the description of the homepage" /><?php} elseif (is_category () | | Is_tag ()) {?> <Metaname= "description"content= "<?php echo strip_tags (Category_description ());? > " /><?php}?>
Just insert this code into the appropriate location in header.php.
The title effect of this code implementation is:
Home: Blog Name – Blog description
Page page: Blog name-2nd page
Other Pages: page name – Blog description
Other Pages: page name – Blog name-2nd page
The effect of the description is:
Customize the Home page description, which is modified in this code
Customize the description of the category and tab pages, which are modified in the background image description
Other pages do not show a description
WordPress Concise SEO title, keywords and description