fishjar
V2EX  ›  WordPress

请教关于 wordpress permalink 的技术问题

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

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

    完全看不到是怎么 Rewrite 的?


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

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