[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:

http://jes.se.com/portfolios/web/my-website

   - 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:

http://jes.se.com/portfolios/my-website


Any push in the right direction would be greatly appreciated.

-- 
thanks

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


More information about the wp-hackers mailing list