以下內容属于 ‘插件’ 便签:

让插件baidu-sitemap-generator支持WordPress自定义文章类型

这里以自定义文章类型“shuoshuo”为例,涉及插件/baidu-sitemap-generator/baidu_sitemap.php的两处修改,174行和314行,废话不多说,直接贴代码。(举例为”baidu-sitemap-generator v1.6.5) 找到插件的baidu_sitemap.php文件,打开。 找到174行代码 1AND (post_type='post' or post_type='page') 改为: 1AND (post_type='post' or post_type='page' or post_type='shuoshuo') 找到314行代码 1AND post_type='post' 改为: 1AND (post_type='post' or post_type='shuoshuo') 来源:https://www.mrwu.red/biji/801.html (more...)

推荐一个谷歌浏览器Chrome插件网站

网址:https://www.chajian5.com/ (more...)