Skip to content

How do you use multiple date parts? #13

@drnickyoung

Description

@drnickyoung

Hi,

Firstly an excellent plugin. I might be missing the obvious here, please point it out if I am.

I have an event post type, with a field event_date. I would like each event to have the permalink structure:

mysite/events/YEAR/MONTH/POST

i.e. mysite/events/2018/november/myevent

So using this plugin, in the permalinks settings I enter for the events permalink:

/%field_event_date(year)%/%field_event_date(format=F)%/%postname%/

This doesn't work, the permalink is set to:

mysite/events/2018-12-13/test-event/

It clearly has picked the date out, 13 Dec 2018. However not what I expected. doing it without the month,

/%field_event_date(year)%/%postname%/

seems to work fine and results in:

mysite/events/2018/test-event/

So question is, am I doing something wrong, or is this not possible?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions