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?