You can use pathinfo() and getimagesize():
$info = pathinfo($image);
if ( @getimagesize($info['dirname'] . "https://wordpress.stackexchange.com/" . $info['filename'] . '.' . $extension_to_check) )
{
// do something
}
Related Posts:
- ACF checkbox array is returning numbers, not labels [closed]
- Getting “Invalid argument supplied for foreach()” Warning
- Using ACF custom field for custom post type to order categories
- ACF: Querying relationship fields with Author
- ACF Relationship – Limit to specific pages
- Show only the future event (Advanced Custom Fields)
- Website goes down while importing backup (Internal server 500)
- Can’t get “has_sub_field()” to work in a conditional [closed]
- Outputing Post Object title as a div class with ACF
- Advanced Custom Fields if else issue
- If/Else Statement for Advanced Custom Fields
- Display total unique custon field results
- Advanced custom fields – pulling data in from another page
- How to get both image attachment ID and url
- Upload non-featured image to image field
- Function wp_enqueue_style was called incorrectly
- ACF: If field contain a specific value, update value in another field programatically
- Search and replace not working for ACF Images
- Can you make a custom gutenberg block that allows the gutenberg editor within it?
- how to load random related posts with specific custom fields?
- HTML Special Characters in URL string [closed]
- Add original validation rule to Advance Custom Fields
- ACF put a comma after the last repeater field value [closed]
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- how make file upload field through custom field
- How Do I Use a ACF Custom Field To Add A Slider ID?
- ACF – Pick first or second value from comma separated values
- Override not echoing my string or dom element
- Form search query – displaying ACF “Post Object” field as results
- ACF Clone Field – Set Default Value
- InnerBlocks with allowedBlocks not working with acf_register_block
- ACF relationship fields ‘The results could not be loaded’
- Accessing values from ACF sub field (flexible content area) in PHP
- Creating an image from a custom field
- ACF save json to custom directory not working, default acf-json used instead
- Create short URL with auto 301 redirect
- Can I set up a hover animation in CSS depending on a PHP conditional?
- Get ACF options field in PHP acting as CSS
- How to get ACF value inside Gutenberg Block from another page or template? I’m using Timber too
- ACF & Bootstrap Gallery Shows Blank Slides [closed]
- Conditional multidimensional arrays and array_map
- ACF Repeater Pagination stopped working since upgrade to php7.2
- How can I count ACF sub_field with a certain value
- ACF URL behavior, duplicating links
- Advanced Custom Fields oembed only outputs YouTube URL
- ACF Maps admin error: “For development purposes only” even after supplying api key
- Query entries from custom post type in an ACF flexible content field
- Displaying user data within ACF relational field (user type)
- Do comparision after updates hooks of acf-fields?
- what is the method to echo class attribute inside the i tag? [closed]
- Hidden field in acf
- ACF Image field not displaying in WordPress with Visual Composer [closed]
- Frontend Form Checkbox Update ACF Field
- ACF and Gravity Form file upload frontend [closed]
- Refactoring long if/else php chains
- Importing ACF code in other page templates
- Getting taxonomy category Image from ACF [closed]
- ACF Content with WPML not saving [closed]
- Trying to select 1 item from an array
- How to show Advanced Custom Fields data above share links, pagination, etc
- How do I ensure the social icons appear on all pages? [closed]
- Order get_terms by multiple meta_values
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- How do you display a custom field on a new page? [closed]
- Query and display only by first letter of the get_field value
- Hash password field to database, unhash in admin?
- ACF google map not working [closed]
- Strip comma from last element in concatenated JSON string
- Show get_sub_field value if it exists [closed]
- Update post meta – Custom field does not match meta-key
- ACF – How to set the menu order for the relationship field
- Sorting get_terms, ACF is automatically removing duplicates
- meta query not retrieving posts
- Advanced Custom Fields [closed]
- Help using acf/save_post hook to connect to Untappd API and update_field [closed]
- How can you query posts by advance custom field when the value is a serialized array? [closed]
- How to get file upload value in front-end to put in ACF image field
- Get ACF fields in relationships of returned post
- Random images with no duplicates (ACF Gallery) [closed]
- ACF Unexpected T_CONSTANT_ENCAPSED_STRING [closed]
- How to acquire an ACF image using get_previous_post and get_next_post
- Advanced Custom Fields – Relationship post foreach query
- Check for duplicate custom field value before running wp_insert_post
- Including Custom fields within the_content
- Building large multi-section pages with Advanced Custom Fields
- Get All In One SEO Pack to use custom field instead of Content
- Remove Post if Advanced Custom Field is checked to fix paging
- Pulling in content from another page [closed]
- Query by radio button ACF
- Sorting the portfolio by an ACF? [closed]
- Showing a post depending on the Custom Field value
- Only Show an Advanced Custom Fields custom field on a specific template
- How to change the background color of my header dynamically based on a Custom Posts types color value?
- Advanced Custom Fields plugin : displaying a field while omitting the p tags
- Adding new parent item to admin bar
- Display category multi-select with Advanced Custom Felds
- Advanced Custom Fields – Check multiple Empty Fields [closed]
- Advanced Custom Fields Plugin: how to use a checkbox to allow a post to show up in desired “zone”?
- Advanced Custom Fields – category image
- Simple Calendar