//文章标题
<meta property="og:title" content="<?php the_title(); ?>">
//当前url链接
<meta property="og:url" content="<?php echo get_permalink(); ?>">
//文章描述
<meta property="og:description" content="<?php echo get_the_excerpt(); ?>">
//文章发布时间
<meta property="article:published_time" content="<?php the_time('Y-n-d'); ?>" />
//作者
<meta property="article:author" content="<?php bloginfo('name'); ?>" />
//文章标题
<title><?php the_title(); ?>-
<?php foreach((get_the_category()) as $category){echo $category->cat_name;} ?>-
<?php bloginfo('name'); ?></title>
//文章关键词
<meta name="keywords" content="<?php tagtext();?>" />
//文章描述
<meta name="description" content="<?php echo get_the_excerpt(); ?>" />
tagtext()的用法可以参考wordpress获取Tag标签不带超链接!
php语法对index.php首页进行判断(根据需要显示不同页面)
wordpress新建页面中页面属性里没有“模板”选项解决方法
上面是“wordpress教程:meta标签的各种语法”的全面内容,想了解更多关于 wordpress 内容,请继续关注web建站教程。
当前网址:https://ipkd.cn/webs_14983.html
workflows工作流
一位老人安详地坐在云层中钓鱼
Latent放大comfyui工作流
一个美丽的女孩穿着花瓣做的衣服
一群邪恶的小黄人ComfyUI工作流
一条闪闪发光的金鱼ComfyUI工作流
一个质朴的木制窗户上放着各种葫芦、南瓜等
一张科幻照片,火星车在沙漠里ComfyUI工作流
一个浑身皮毛看起来像丘巴卡的3d动漫人物
猜你喜欢
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

用svg画出游泳池动画效果
利用CSS3代码编写45款按钮效果
css3搭积木叠加图形
纯html+css做一个3d统计效果
canvas经线动画走到效果
2023年程序猿如何给自己开启一场烟花盛会
会议人员60s签到倒计时插件
纯css3绘制的小鸟










