sitemap.html打不开咋肥四?
wordpress吧
全部回复
仅看楼主
level 1
站点:http://www.utem.top一直用的纯代码sitemap.html,之前一直都正常,自从WordPress升级了自带sitemap.xml的版本之后就打不开了
如图:
各位大佬帮忙看看出了啥问题?
代码如下:
<?php
/*
Template Name: Sitemap
*/
?>
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=”http://www.w3.org/1999/xhtml”>
<head profile=”http://gmpg.org/xfn/11″>
” />
站点地图 – <?php bloginfo(‘name’); ?>
” />
” />
” />

body {font-family: Microsoft Yahei,Verdana;font-size:13px;margin:0 auto;color: <a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=431680&topic_name=000000;background: &is_video_topic=0">#000000;background: #</a>ffffff;width: 990px;margin: 0 auto}
a:link,a:visited {color:#000;text-decoration:none;}
a:hover {color:#08d;text-decoration:none;}
h1,h2,h3,h4,h5,h6 {font-weight:normal;}
img {border:0;}
li {margin-top: 8px;}
.page {padding: 4px; border-top: 1px #EEEEEE solid}
.author {background-color:#EEEEFF; padding: 6px; border-top: 1px #ddddee solid}
#nav, <a href="https://tieba.baidu.com/mo/q/hotMessage?topic_id=0&fid=431680&topic_name=content, &is_video_topic=0">#content, #</a>footer {padding: 8px; border: 1px solid #EEEEEE; clear: both; width: 95%; margin: auto; margin-top: 10px;}



‘s SiteMap


/”>
»
”>站点地图


最新文章



” title=”





分类目录




单页面


查看博客首页:
/”>


http://www.timle.cn/sitemap_baidu.xml” target=”_blank”>Baidu-SiteMap</a></strong> Latest Update: <?php $last = $wpdb->get_results(“SELECT MAX(post_modified) AS MAX_m FROM $wpdb->posts WHERE (post_type = ‘post’ OR post_type = ‘page’) AND (post_status = ‘publish’ OR post_status = ‘private’)”);$last = date(‘Y-m-d G:i:s’, strtotime($last[0]->MAX_m));echo $last; ?><br /><br /></div>
</center>
</body>
</html>
2021年06月11日 07点06分 1
level 1
[怒]乙出了啥问题
2021年06月14日 08点06分 2
level 1
這個貼吧一個有能耐的都沒有?
2021年06月15日 09点06分 3
level 2
域名应该是 home_url/wp-sitemap.xml 不是sitemap.xml
2021年06月18日 05点06分 4
1