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
- How can I make the hero image full width, while keeping the contents below it contained, without the scroll bar appearing when viewing it?
- WP_Query and DES sort for Custom Taxonomy based upon a meta field?
- Help with showing text when something is entered in my search bar
- Remove divs and spans from post content
- Get Related Posts by Tag if Tag is Empty Get Posts by Category
- How to write a query-function as a query-shortcode?
- orderby and order filter in get_posts or WP_query function in wordpress not working
- How to show featured post first, then separate loop for other posts
- How to order “top rated” results by date and meta key?
- error with $query->have_posts()
- Output ACF field dynamicaly within a taxonomy loop [closed]
- Main loop querying current template’s info only in custom category archive pages, not my posts
- Multiple Orderby is not working right
- Why does WP_Query not search for two ‘meta_query’ keys separated with OR?
- Getting posts via WP Query
- Bug when uploading pictures with Arabic name characters?
- Print post data inside loop using theme content template
- shortcode with $atts with strange results
- Show linked products using wp query and woocommerce
- Where to find WP_Query class?