web建站教程
  1. 首页
  2. vuejs
  3. js
  4. 好玩
  5. seo教程
  6. 前端知识
  7. 百度echarts
  8. 更多
    php入门
    nodejs
    mockjs
    reactjs
    mysql
    wordpress
    织梦cms
    帝国cms
    git教程
    IT知识
    模板大全
    休息站

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

132 ℃
     
<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的SaaS属性有什么优点

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

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

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

wordpress自定义设置首页、分类、tag标签页文章数

标签: meta属性, wordpress入门

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

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

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

当前位置: 网站首页 > wordpress
本文共计508个字,预计阅读时长4分钟
生活小工具,收录了80多款小工具
上一篇: 推荐一款完全免费的 Windows 软件卸载、清理工具——HiBit Uninstaller
下一篇: 推荐一款可免费商用圆体字库——江城圆体
x 打工人ai神器