Viewing 1 replies (of 1 total)
  • Plugin Author dholloran

    (@dholloran)

    Greetings,

    You can either use WP_Query to retrieve the attachments just like you can query posts you can read more about it here. I also have a convenience method wpba_get_attachments() you can read more about it here.

    You can get the link to an attachment fairly easily. You can use wp_get_attachment_url() if you are looking to get the path to the file you can read more here. You can also use get_attachment_link() if you want a link to the attachment page you can read more about it here.

    Hope this helps please let me know if you need anything else.

    Thanks,
    Dan

Viewing 1 replies (of 1 total)
  • The topic ‘how to get url attachment is posted’ is closed to new replies.