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

460 ℃
复制代码<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';  
?>" >
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20

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,我们会在看到邮件的第一时间内为您处理!

织梦dede会员中心地区显示解决办法
织梦后台图集模型编辑页不能生成缩略图的解决
翻书loading动画效果
dede织梦绑定手机域名教程
米多客客服系统企业版