• I’m just playing with the permalinks, using the %category% structure tag.

    For my posts, I have a number of nested categories. But at the top level are two parents – “News” and “Projects”. Any posts within a sub-category also have one of those two parents selected.

    Is there any way to have the %category% structure tag only display the parent category in the permalink?

    so I get
    site.com/projects/post-title instead of site.com/projects/location/local/post-title
    and
    site.com/news/post-title instead of site.com/news/quote/other/post-title

    Thanks.

Viewing 1 replies (of 1 total)
  • Here’s how I resolved this…

    For posts where I want ONLY the parent category to be in the permalink, I selected both the parent category AND the sub-category on the post page.

    For posts where I want BOTH the parent category and the sub-category in the permalink, I selected ONLY the sub-category on the post page.

    Hope that helps.

    Paul

Viewing 1 replies (of 1 total)
  • The topic ‘permalink – ?tegory% – restrict to parent category?’ is closed to new replies.