Support » Fixing WordPress » Getting a post by parsing a link – HOW?

  • Resolved Wabsnasm

    (@wabsnasm)


    I want to be able to inject fields from one post into another using a shortcode. I thought a good way to do this would be to have the user insert a link to the page, like this:

    [shortcode]Link - to - http://example.com/taxonomy/term/post-name[/shortcode]

    I want to parse that link using something like WP->parse_request(), however that won’t do it. How can I parse a URL and get its post (or even just its ID)?

    Is there another way to inject one post’s content into an arbitrary point in another?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Getting a post by parsing a link – HOW?’ is closed to new replies.