1

I have been looking all over the place and maybe I'm just searching the wrong terminology but I need to be able to allow an end user (completely non-technical) to add an arbitrary path to the url structure of a WordPress page.

Essentially I need a simple way to allow the end user to create a page titled blah and put it in the path /something/here/blah. I tried to use a plugin that allowed category association with a page but it didn't setup the permalink route with the category/subcategory structure like I expected.

I have seen a number of posts about adding code to insert rewrites, etc but I need these paths to be able to be created at the whim of a non-technical user. I do not have ton of experience with WordPress but I'm a veteran PHP developer so I'm willing to write a plugin (or extend one) but I just need a bit of direction on how best to approach this problem within the WordPress architecture.

  • 1
    And why can't you create this structure with pages? I mean create page something, then page here and set something as its parent, and then blah, and set here as its parent? Generally you should do this this way in WP. – Krzysiek Dróżdż Aug 2 '13 at 16:17
  • 1
    On most of the pages, this is what will happen but there are a couple scenarios where there is not a parent page so I was looking for some kind of override. I guess I could just create empty pages for the parent structure... – richwalkup Aug 2 '13 at 17:13
  • There are several filters, wp_unique_post_slug, wp_insert_post_data for example you can tie into change the slug, on top of that you can use codex.wordpress.org/Custom_Fields. – Wyck Aug 3 '13 at 6:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.