Skip to content

Retrieve Attachments

Home Forums Technical Issues Retrieve Attachments

This topic contains 1 reply, has 2 voices, and was last updated by 3 weeks, 4 days ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #23002 Reply

    I am attempting to retrieve attachments with the following code:


    $args = array(
    'post_type' => 'attachment',
    'posts_per_page' => 10,
    'required_operation' => 'read',
    'post_status' => 'inherit',
    'suppress_filters' => false
    );
    $attachments = get_posts( $args );

    As long as the collaborative editing pack is active, I get 0 responses, but if I disable it, I get the expected 10. I am logged in as *the* administrator. How would I retrieve attachments?

    #23003 Reply

    [ login required ]

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

Registered members have full access to Pro support forums here.

Feel free to log in or purchase a support key.