custom _ page _ rules’);function custom _ page _ rules(){ global $ WP _ rewrite;$wp_rewrite >页面结构$wp_rewrite >根。页面/%pagename%,html ;}保存后可以得到后台>设置>固定 链接,再次保存固定 链接的格式,更新rewriterule,这样就可以生效,否则就是404。

怎样修改 wordpress的 固定 链接

1、怎样修改 wordpress的 固定 链接

添加前缀页和后缀。html把下面的代码放到functions.php实现Add _ Action (init , custom _ page _ rules );function custom _ page _ rules(){ global $ WP _ rewrite;$wp_rewrite >页面结构$wp_rewrite >根。页面/%pagename%。html ;}保存后可以得到后台>设置>固定 链接,再次保存固定 链接的格式,更新rewriterule,这样就可以生效,否则就是404。

2、如何设置 wordpress 固定 链接

WordPress固定链接设置的几种方法:1。/% Year %/% month num %/% Day %/% Post name %/2,/%Year%/%Monthnum%/%Post,?y%/%postname%.html4,/% year %/% month num %/% postname % . html 5,/?tegory%/%postname% .html6,/%post _ id%。htmlwordpres。


文章TAG:插件  wordpress  WordPress  链接  程序  wordpress固定链接插件  
下一篇