The way to exclude Featured Image have changed on 3.6.x?
-
Hi!
I am using a theme called neptune, it uses the regular way to exclude the Feature Image on contents (it build a slider in a “portfolio” item)
That section code looks like this:
//get attachement count $get_attachments = get_children( array( 'post_parent' => $post->ID ) ); $attachments_count = count( $get_attachments ); $thumb_ID = get_post_thumbnail_id( $post->ID ); //set current featured image ID $feat_full_img = wp_get_attachment_image_src(get_post_thumbnail_id(), 'full-size'); //attachement loop $args = array( 'orderby' => 'menu_order', 'post_type' => 'attachment', 'post_parent' => get_the_ID(), 'post_mime_type' => 'image', 'post_status' => null, 'posts_per_page' => -1, 'exclude' => $thumb_ID ); $attachments = get_posts($args);
Something changed on recent wordpress versions? (3.6.x)
Because it is still showing the Featured Image… and I have uploaded it using the Media manager, not attached to the portfolio item…
I have installed the Unattach plugin too, just to check… and the featured images are NOT attached to any portfolio item…Any idea?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘The way to exclude Featured Image have changed on 3.6.x?’ is closed to new replies.