我的舞台:使用PHP 7.2WordPress 5.2.4
我希望我的永久链接可以通过post / id和标题条来访问:
example-page.com/post_id/
和
example-page.com/post_id/post_title
我想要实现的是:URL应该是显示标题段,但只能通过ID以/ 10 / this-is-the-title-slug的形式查询页面
我必须在functions.php或WordPress永久链接设置中输入什么?
您的情况应该是:
/%post_id%/%postname%/