Hi, Cornerstone is optimized for the “Structured” permalink format, but other formats may work as WordPress can be fairly flexible with this.
I would recommend testing the other available permalink tags (ideally on a test copy of your site) to see if your sections and posts still load properly.
Thread Starter
Josh
(@joshmbuck)
Thanks for the email. I actually meant that I wanted to keep the permalink how “Structured” formats it, but i wanted to add so instead of site.com/section-name/sample-post/ as “Structured” formats it it would be something like site.com/section-name/year/month/sample-post/ so it has the section name at the beginning like “Structured” does, but it also has additional info before the post’s name.
thanks.
Yes, the link in my previous response provides instructions for customizing the permalink structure using a variety of tags, including a post’s year, month, etc.
Thread Starter
Josh
(@joshmbuck)
Thanks. I’m sorry…I’m not very proficient in wordpress, so forgive me if I’m not asking the right question (or if I’m not understanding the answer). I understand how to use the tags to customize my permalink. What I don’t know is what tag to use to get the name of the section I created to display in the URL like your “Structured” default does.
I can create a custom permalink like this: /%year%/%monthnum%/%postname%/, but I don’t know what tag to put before /%year%/ for it to display the structure section names.
Does that make sense?
The permalink tags/structure used for the selected preset structure is displayed in the Custom Structure.
For example, when CNR’s Structured preset is set as the current permalink structure, /%postpath%/%postname%/ is displayed in the Custom Structure option for further customization as needed.
%postpath% is a custom tag added by CNR that contains the path to a post– the section hierarchy that the post is a child of.
%postname% is the name of the post.
Thread Starter
Josh
(@joshmbuck)
Thanks. So I was on the right path…that makes me feel better. This is what I did originally before submitting the help request. But I’m still having an issue. Here’s what I put into the custom permalink field:
/%postpath%/%year%/%monthnum%/%postname%/
but I get a 400 error and this is what’s in the URL window:
http://mysite.com/%postpath%/2020/07/my_blog_post/
When I select the Structured permalink option, it works fine (http://mysite.com/blog/my_blog_post/).
I’m thinking that wordpress is only recognizing %postpath% when I select the “Structured” permalink option.
Thank you for the additional context. Yes, it looks like the %postpath% is currently only available for CNR’s Structured permalink setting.
Expanding the compatibility of the %postpath% tag has been added to the list for a future update.
Thanks.