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

2024年06月13日 建站教程

<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';  
?>" >

本文链接:http://so.lmcjl.com/news/6484/

展开阅读全文
相关内容