首页 › Forums › bbPress插件版讨论区 › 插件 › Custom Post Type Permalinks – bbPress固定链接更改插件
该主题包含 9 个回复,有 6 个参与人,并且由 wuruirui 于 2 月, 2 周 前 最后一次更新。
-
作者帖子
-
2013 年 4 月 18 日 am 9:25 #1532
插件 Custom Post Type Permalinks – bbPress固定链接更改插件
可到官网下载,也可在二楼下载。
http://wordpress.org/support/plugin/custom-post-type-permalinks设置很简单,这插件找了一早上,简单测试了下,没啥问题
附件:
您必须登陆才能查看附件2013 年 4 月 18 日 am 9:33 #15342013 年 4 月 18 日 am 10:43 #15362013 年 4 月 23 日 pm 12:36 #1611@realhood @admin
我在想,如果把”/”换成”-”,这样对于SEO也是有帮助的
就比如本主题的URL:
http://www.bbpress.me/forums/topic/%E5%88%86%E5%89%B2%EF%BC%9A%E5%A6%82%E4%BD%95%E5%AE%9A%E4%B9%89bbpress%E5%B8%96%E5%AD%90%E7%9A%84url/
用插件换成id之后就变成:
http://www.bbpress.me/forums/topic/1532/
但是如何变成这样的呢?
http://www.bbpress.me/forums-topic-1532.html
我觉得后续bbPress会放出的吧,毕竟一直在更新~2013 年 4 月 27 日 pm 2:50 #16492013 年 4 月 27 日 pm 4:18 #16502013 年 4 月 28 日 am 12:01 #1652发现个大问题
@admin @fake @zhuanquan
如果换成post_id,不是管理员登录,点击topic主题却是只想post_name的,这样一来就跳到404了
在bbpress好多问题
诸位可以试试
烦死了,不懂英文 跟他唠不上块去
懂php可以改改啊另外:还有这样一个问题 不知发现了没,按照他们的方式改了就没问题
http://wordpress.org/support/topic/bbpress-topic-links-in-forums-breakCode: arbitrary (select)1.
2.
3.
4.
5.
6.
7.
8.
9.
10.$parentsDirs = "";
if( !$leavename ){
$postId = $post->ID;
if ( !in_array($post_type, array('topic', 'forum', 'reply') ) ) {
while ($parent = get_post($postId)->post_parent) {
$parentsDirs = get_post($parent)->post_name."/".$parentsDirs;
$postId = $parent;
}
}
}2013 年 4 月 28 日 am 12:04 #1653感觉最好还是写个.htaccess文件
2013 年 5 月 30 日 pm 12:59 #1737在windows主机下好多问题。
2013 年 5 月 31 日 am 10:12 #1739
[code][/code]
-
作者帖子
抱歉,回复评论必需登录。