correct me if I’m wrong but isn’t image.jpg , your original always the largest?
— if not you can split the urls on ‘-‘. and get last from your sort?
do take in mind you take last split, because it’s possible your filename has a ‘-‘.
http://be.php.net/preg_split
Related Posts:
- Count the number of images uploded on the website
- How to paginate attachments in a secondary query as gallery?
- How do I exclude all images from a wp_query?
- get images attached to post
- query attachments of parent page if attachments of current page are smaller than …
- wp_query for displaying attachments with a tag
- wp_get_attachment_image not to get the post_thumbnaill
- How To Query All Attachment Images Found In Post Galleries
- Some images not being returned with wp_get_attachment_image
- Loop issues when creating custom query for media uploader
- Broken? WP_Query and “attachment” as a post type
- How does WP media uploader create the 3 different sized images, and how can I duplicate it
- Uploaded images don’t show in Media Library if there are special characters in IPTC Keywords
- Is it possible to query all posts that don’t have an attachment?
- Disable image attachment links
- How to paginate wordpress [gallery] shortcode?
- How to get Page/Post Gallery attachment images in order they are set in backend using WP_Query()?
- Getting attachments by meta value
- Get attachment by slug
- Get attachment ID of author_meta image – Attachment Metadata
- Ignore a filter on the media library
- How do i upload an image and return the image id?
- Automatically wrap post image in div
- How to upload image without post ID using the new media uploader?
- Get attached media only
- Rename attachments during upload
- Add suffix to filename of uploaded images
- How to display images in related posts?
- post thumb nail
- WP Query search for attachments and their exact title
- Show selected images on top in Media Manager
- How can I query posts with newly uploaded images?
- Sorting By Custom Posts With Attachments
- Attachment changing page’s permalink – $post not resetting?
- media_sideload_image with rewritten urls?
- How to fetch only media that was already attached to a post/page?
- How to do meta_query for attachments?
- Get attachment by meta_key value
- Handling image uploads without thickbox
- How to show optimized list of posts with all their attachment images
- Where to put meta Keys
- Auto delete attachments that are older than x days
- wp_upload_bits Upload Specific Sizes Only
- WP_Query Attachment adds additional attachment count and need to link attachment to post url
- Redirect to another page using contact form 7? [closed]
- Better wordpress attachment query than this
- Does wp_get_attachment_image_src also work with non-image files?
- Get images attached to a specific page
- WordPress Creates Unused (Unregistered) Image Sizes
- Upload attachment from external site
- Why having more than 10 clauses in WP_Query results in some outputs being dropped?
- wp_query get attachments in larger size
- Creating attachments archive in tags and categories
- How to add WordPress featured image via SQL
- Display all attached image of every post of custom post type and link to original post
- Ignore image urls in wp_query search
- Insert images into wordpress post with a query
- Find only those galleries with images
- How can I build a query that returns all attachments of a page and it’s children pages?
- get all images from the wordpress media library with link to the post they are associated with
- How to restrict add media library only to images of the same post family?
- how to get custom attachment url?
- How to upload 3 attachments to current post?
- How to disable post-thumbnail from generation?
- Change database image location for transportability
- WP query retrieve the src of attached image
- Trying to use “Medium” featured image for custom post type on home page
- Troubles with code for upload a image
- Query All Attachments and Order by Parent Publish Date
- After I upload a file to library its name converted to dashes
- Display images with same specific value?
- WP_Query for attachments without duplicating post_parent and displaying tagged image
- Using WP_Query to get attachment returns empty set
- How to force attachment size for every post
- Pull Instagram images into an existing loop?
- Upload unnattached image from frontend
- WP Query Obj: Set value to be unequal | Hide media by admin
- How to get WordPress to resize images for srcset?
- Give attachments an archive page, and exclude unattached ones
- on attachment.php, how to display previous and next attachment links that follow the same order as a custom WP Query
- Some doubts about how the main query and the custom query works in this custom theme?
- Highlighting Sub topic in a post?
- WP_Query with many meta_query arguments taking a long time to load
- Slow speed and high CPU usage for my code. How to improve it?
- Multiple queries on Home Page – page load/site speed issue
- WordPress custom archive page
- Why is this coming back as null? Thats wrong. There is one post
- Retrieve featured image (thumbnail) url from multiple posts with one query
- wp_query() get_col error
- How to select posts from one category but exclude posts in another category?
- Why can I not view image attachment pages?
- Restrict Image Uploads to a Certain File Type
- WP_query posts closest to todays date
- Order by meta value (numeric value lower to higher)
- Control resizing of uploaded images
- WP_Query Pagination
- meta_query compare > not working
- WP_Query about meta_key and its array value
- Paginate nested query of child posts
- Using ‘meta_query’ with the ‘pre_get_posts()’ hook disables searching for post titles