Support » Plugin: Attachments » Use out of loop

Viewing 1 replies (of 1 total)
  • Plugin Author Jonathan Christopher


    Hey Nick, Attachments has just been updated to version 3.0 but if you don’t plan on upgrading you can just pass the post ID you’re looking for to attachments_get_attachments(). For example:

    $attachments_for_post_id_123 = attachments_get_attachments( 123 );

    and you should be good to go!

Viewing 1 replies (of 1 total)
  • The topic ‘Use out of loop’ is closed to new replies.