wordpress获取当前文章ID自定义meta移动端链接

482 ℃
<meta name="mobile-agent" content="format=xhtml; url=<?php  
$current_post_id = get_the_ID();  
global $post;  
$current_post_id = $post->ID;  
echo '自己网站的移动端链接' . $current_post_id . '.html';  
?>" >

<meta name="mobile-agent" content="format=html5; url=<?php  
$current_post_id = get_the_ID();  
global $post;  
$current_post_id = $post->ID;  
echo '自己网站的移动端链接' . $current_post_id . '.html';  
?>" >

<meta name="mobile-agent" content="format=wml; url=<?php  
$current_post_id = get_the_ID();  
global $post;  
$current_post_id = $post->ID;  
echo '自己网站的移动端链接' . $current_post_id . '.html';  
?>" >

wordpress获取内容页最新文章代码

WordPress的SaaS属性有什么优点

WordPress故障排除大全,网站访问不了解决方法

wordpress用栏目名称(category_name)调用指定栏目下的文章

vue全局动态添加meta属性(title,keywords,description)

标签: meta属性, wordpress入门

上面是“wordpress获取当前文章ID自定义meta移动端链接”的全面内容,想了解更多关于 wordpress 内容,请继续关注web建站教程。

当前网址:https://m.ipkd.cn/webs_15106.html

声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

Trae:新一代免费的AI编程工具
nginx根据扩展名限制程序和文件访问禁止访问php?
wordpress如何获取各种文章状态的文章总数
罗永浩锤子手机T2发布会PPT模版下载
如何把npm升级到最新版本
码云(gitee)提交不显示贡献度解决方法