Get page permalink without wpurl
I currently have an ID of a page that I want to use its permalink as the front of a permastruct of a CPT I’m setting up.
Now I can use get_permalink() but that returns the full URL:
http://www.example.com/imapage/subpage/subsubpage
but all I want to return is imapage/subpage/subsubpage
Is there a function that can do this or do I have to device something that can subtract the non-needed part of the url?
$299 Affordable Web Design WordPress
This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.