We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently only featured images are supported.
The text was updated successfully, but these errors were encountered:
Get all attachments with current post as parent and exclude the featured image:
$attachments = get_posts( array( 'post_parent' => $post->get_id(), 'post_type' => 'attachment', 'posts_per_page' => -1, 'exclude' => $thumbnail_id, ) );
Unfortunately that does not support attachments first added to one post and then reused on another post.
Sorry, something went wrong.
Get attachments added to a specific post (same as above without excluding featured image):
get_attached_media( '', $post->get_id() );
Does not support images added to one post and reused on another (same limitation as in comment above).
No branches or pull requests
Currently only featured images are supported.
The text was updated successfully, but these errors were encountered: