Excellent software and practical tutorials
wordpress calls tags as keywords tags
How to call wordpress tags as pageskeywordsTags? The wordpress development documentation provides the get_tags function. The meta keywords format is, add the PHP code according to this format and paste the content into the Appearance>Theme File Editor>header.php file.
if (is_single()){//如果是文章页
$keywords = '';
$tags = wp_get_post_tags($post->ID);//取文章标签
foreach ($tags as $tag ) {
$keywordarray[] = $tag->name;
}
//以文章标签为关键字
$keywords = implode(',',array_unique((array)$keywordarray));
} else if (is_category()){
$keywords = single_cat_title('', false);
}else {//如果不是文章页、分类页
$keywords = ''; //在引号间写入你博客的关键字用,断开
}
echo $keywords; ?>" />
From the perspective of database simplicity, this is a good idea.
Third-party SEO plug-ins will add some fields to store keyword data. If the number of pages on the entire website increases, the database will become larger and the access speed will decrease.
Tags will create some separate pages, which will list all the articles containing this tag. The subject is very relevant, a bit like a small special topic, and is more search engine friendly. Some large websites will optimize through tag pages to obtain accurate traffic.