redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

How to get page name and url from page selector?

Open shkumbin opened this issue 13 years ago • 1 comments

Hi there

Can you help me how to get page Title & Url from page selector. Any help would be appreciated.

Thanks a lot...

shkumbin avatar Nov 26 '13 09:11 shkumbin

The page selector saves the selected pages ID. You would treat the value as a postID and use the WP API to get any relevant data from it. For example, get_permalink would get the url.

kprovance avatar Nov 26 '13 16:11 kprovance