0

If have an options page where I have a custom text field and I want to paste a url of a post in that custom field and retrieve the Post Title and Excerpt and display theme above the custom field and then be able to repeat that and put it in a list above the field how wood I accomplish this?

2
  • 1
    You can use url_to_postid function to retrieve the post id from a URL.
    – gdaniel
    Jun 30, 2015 at 20:58
  • You cannot use the full URL according to the codex. What I want to do is to allow my contributors to is past a url of their post on the front end into an options page build a list then email that list to a receiver of that email
    – Amen Ra
    Jun 30, 2015 at 21:00

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.