简体   繁体   English

将年份和/或月份添加到Wordpress“事件日历”中的单个事件永久链接?

[英]Add year and/or month to the single event permalink in Wordpress “The Events Calendar”?

I'm using wordpress and "The Events Calendar" plug-in, and it gives each 'event' a permalink URL like /event/ 我使用的是wordpress和“事件日历”插件,它为每个“事件”提供了一个永久链接URL,例如/ event /

That works, and I can change /event/ to whatever word I'd like, but when I have events like 'First Day of School', it makes me realize that what I'd really like is to add more information to the slug like '/event/2012/' or '/event/2012/09/' ... but within 'The Events Calendar' plug-in I can't figure out how I would do that or if it is even possible. 那行得通,我可以将/ event /更改为我想要的任何单词,但是当我遇到诸如“开学第一天”之类的事件时,这使我意识到我真正想要的是向子弹添加更多信息例如“ / event / 2012 /”或“ / event / 2012/09 /” ...,但是在“事件日历”插件中,我无法弄清楚该怎么做,或者甚至不可能。

Any help would be appreciated, thanks! 任何帮助,将不胜感激,谢谢!

Without using the plugin, can you amend your permalink structure in Settings > Permalinks 不使用插件,是否可以在Settings > Permalinks修改永久链接结构

Maybe a custom structure you could use would be: 也许您可以使用的自定义结构将是:

/%year%/%monthnum%/%day%/%postname%

Not sure how Events Manager is registered, you may need to place something in front of the structure 不确定如何注册事件管理器,您可能需要在结构前面放置一些东西

/%category%/%year%/%monthnum%/%day%/%postname%

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM