• Resolved Josh

    (@joshmbuck)


    Hello,

    I just discovered Cornerstone, and so far, I’m super excited!

    Is it possible to create a custom structure, so instead of the default “Structured” format (site.com/section-name/sample-post/) I could have something like: site.com/section-name/year/month/day/post-title?

    Thanks.

    • This topic was modified 4 years, 4 months ago by Josh.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Archetyped

    (@archetyped)

    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.

    Plugin Author Archetyped

    (@archetyped)

    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?

    Plugin Author Archetyped

    (@archetyped)

    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:

    https://mysite.com/%postpath%/2020/07/my_blog_post/

    When I select the Structured permalink option, it works fine (https://mysite.com/blog/my_blog_post/).

    I’m thinking that wordpress is only recognizing %postpath% when I select the “Structured” permalink option.

    Plugin Author Archetyped

    (@archetyped)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘customizing permalinks’ is closed to new replies.