Support » Plugin: WP Better Attachments » Featured image being added to attachments list

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author dholloran

    (@dholloran)

    Interesting, I can add something to the settings to allow you to exclude the featured image, since technically the featured image is an attachment. I had considered excluding the featured image as well as possibly adding it when a user adds the image to a pos/paget. thanks for the feedback I will add this in the next release hopefully this coming weekend.

    oterox

    (@oterox)

    i’ve modified the get_post_attachments function args to exclude it:

    $get_posts_args = array(
    	'post_type'     => 'attachment',
    	'posts_per_page'  =>  -1,
    	'post_parent'    => $post->ID,
    	'order'       => 'ASC',
    	'orderby'      => 'menu_order',
    	'exclude' => get_post_thumbnail_id($post->ID),
    );
    Plugin Author dholloran

    (@dholloran)

    I have added this to the settings so there will be no issues with updating.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured image being added to attachments list’ is closed to new replies.