[wp-hackers] Rewrite API CPT Parent Slug Removal

Jesse Friedman me at jes.se.com
Thu Apr 25 20:41:53 UTC 2013

I'm trying to remove the parent page slug from a CPT url.

For Example:


   - where My Website is a child of Web
   - portfolios = CPT slug
      - web = Parent page slug
      - my-website = page slug

I am attempting to remove "web" with the Rewrite API but I'm having
difficulty. I want the url to be:


Any push in the right direction would be greatly appreciated.


*jesse friedman*
jes.se.com *
Book: Web Designers Guide to WordPress -
Twitter: @professor <http://twitter.com/professor>
Facebook: Like<https://www.facebook.com/pages/Jesse-Friedman/204793299545174>

More information about the wp-hackers mailing list