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移动端链接

414 ℃
<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://ipkd.cn/webs_15106.html

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

当前位置: 网站首页 > wordpress
本文共计508个字,预计阅读时长4分钟
生活小工具,收录了80多款小工具
上一篇: 推荐一款宝藏型工具应用类网站——一个木匣
下一篇: 推荐一款拥有江西情怀的免费可商用字体——江西拙楷体
x 打工人ai神器