fishjar
V2EX  ›  WordPress

请教关于 wordpress permalink 的技术问题

  •  
  •   fishjar · Dec 7, 2015 · 2896 views
    This topic created in 3827 days ago, the information mentioned may be changed or developed.
    6 replies    2015-12-07 22:41:05 +08:00
    emric
        1
    emric  
       Dec 7, 2015
    如果你插件是增加文章类别 (register_post_type) 的, 把固定连接设置成 `/%postname%/` 就行.
    fishjar
        2
    fishjar  
    OP
       Dec 7, 2015
    @emric 可能你还没明白我的问题
    GG668v26Fd55CP5W
        3
    GG668v26Fd55CP5W  
       Dec 7, 2015 via iPhone
    某插件叫啥,我看下它的重写规则
    GNiux
        4
    GNiux  
       Dec 7, 2015 via iPhone
    最近我也被 WP 困惑的不行。

    在 admin 界面里做了更改(如 permalink),到文件目录里查看,未见配置文件改动呢?(如.htaccess)

    完全看不到是怎么 Rewrite 的?


    @emric
    @falcon05
    谢过
    GG668v26Fd55CP5W
        5
    GG668v26Fd55CP5W  
       Dec 7, 2015 via iPhone
    rewrite rule 是写在 options 表的
    fishjar
        6
    fishjar  
    OP
       Dec 7, 2015
    @falcon05
    使用了这个插件: https://wordpress.org/plugins/custom-post-type-permalinks/
    其实已经很接近我的目标了

    唯一问题是如何把 archive of term 的 permalink 中的 taxonomy slug 去掉
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   966 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 22:45 · PVG 06:45 · LAX 15:45 · JFK 18:45
    ♥ Do have faith in what you're doing.