# 说明
[![](http://rxnb37trq.hn-bkt.clouddn.com/thum-dda01689172487.png)](http://rxnb37trq.hn-bkt.clouddn.com/dda01689172487.png)
wordpress sitemap生成PHP,可以自动更新stiemap
# php代码
```php
';
echo '
?>
0) {
foreach($mypages as $page) { ?>
0){
foreach ($terms as $term) { ?>
$tag ) {
$link = get_term_link( intval($tag->term_id), "post_tag" );
if ( is_wp_error( $link ) )
return false;
$tags[ $key ]->link = $link;
?>
```
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容