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
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- How to store ACF custom fields data in a custom table
- wordpress REST-API upload image to ACF
- Meta Query “IN” doesn’t work with ACF checkbox filter
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- How to add a custom field to quick edit
- How to Explode a Textarea Field and Echo each line separately, wrapped with HTML
- Gutenberg First Block on Page Conditional?
- Comparing arrays with meta_query in pre_get_posts
- Change message given when deleting post from custom post type
- How to order by just the Time Field in Advanced Custom Fields
- Using Gutenberg parse_blocks Function With ACF Custom Blocks?
- How to update custom taxonomy meta using ACF update_field() function or any other wordpress function
- Thumbnails generated from PDF in the “Media” section – how to show them in theme template?
- How to count ACF Flexible Content Rows?
- Query between dates using date picker filter breaks in WordPress 4.2.1
- Get ACF value after update user using save_post
- How can I track and output when a field is updated? (currently using Advanced Custom Fields)
- How to write PHP array to render JSON-LD Markup for Job Postings, with ACF
- Importing hard coded custom field into acf field
- Strip characters, Including spaces, for tel: link
- How can I add multiple ‘tax_query’ arrays via a loop?
- get_posts of Custom Post Type AND Custom Taxonomy
- Advanced Custom Fields: Conditional Statement with Select
- Saving an array of dynamic repeater data as post_meta
- Add PDF to ACF image field from file url
- Unread Repeater field IMG alt not working
- How to get custom fields in a post when published
- Slick + PHP + ACF + JQuery slide reveal not working
- Get all custom fields with wp’s get_posts()
- How to populate a parent page with its child subpages and associated templates
- Find the first occurrence of a custom field
- Displaying custom field according to date
- ACF Add fields values to newly inserted post [closed]
- Programatically re-order images in the ACF gallery add-on. Orderby Title, ID, etc
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- Website goes down while importing backup (Internal server 500)
- ACF: If field contain a specific value, update value in another field programatically
- how to load random related posts with specific custom fields?
- Form search query – displaying ACF “Post Object” field as results
- Accessing values from ACF sub field (flexible content area) in PHP
- Creating an image from a custom field
- 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
- How can I count ACF sub_field with a certain value
- ACF Image field not displaying in WordPress with Visual Composer [closed]
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Advanced Custom Fields [closed]
- How to acquire an ACF image using get_previous_post and get_next_post
- Building large multi-section pages with Advanced Custom Fields
- Get All In One SEO Pack to use custom field instead of Content
- Showing a post depending on the Custom Field value
- Only Show an Advanced Custom Fields custom field on a specific template
- How to create repeater field manually, without plugin (ACF Pro)?
- Widget Code / Advanced Custom Fields / Elementor
- Display Post Title From Select Choice Loop in Advanced Custom Fields (ACF) – WordPress
- getting image from ACF
- Fetch data from two custom post types and create multidimensional array for output to html table
- How can I apply an ACF field to a single custom post if it refers to the taxomy of that post type in the rules?
- Getting “Years Only ” from ACF Date Picker field to Hidden filed in the fields group
- Problems updating nested ACF field groups
- Trying to update repeater field (ACF) dynamically with data from Contact Forms 7
- Get title color from category custom field
- WP Cron Working, but Function Not Working
- How to get a product’s Custom Fields in a different template file?
- pre_get_posts hook not targeting search results page query
- ACF – get custom taxonomy term image field
- ACF group field disappeared after deployment using deployer script
- ACF Dynamic select not showing data
- Modification of RSS feed is not consistent
- Advanced Custom Forms PHP formatting for do_shortcode
- ACF Gallery field images donwload
- Display posts every specific day
- ACF under category name in shop page [closed]
- How to use WP Backery on Wysiwyg ACF
- Looking for a javascript callback action to re-initiate a custom slideshow in gutenberg
- Help using an array in ‘exclude’ key of another array
- ACF background-color per post in a WordPress loop
- Make sticky post with FacetWP
- Front page showing ACF only once, is that solvable to show the ACF per post? [closed]
- PHP for loop not working as intended
- Add column and acf field content for cpt
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]
- Get month and day from a Date Picker custom field
- Displays a string of linked images
- Multiple loop issue – pull one featured and then continue the loop
- Check if meta_key exists in wp_list_pages
- ACF + WPML: How to translate date fields?
- Order woo products, but first products must be with acf fields
- PHP calls to custom fields not being made. Query seems to be blocking them
- Show button in header when product custom field is not empty
- How to indicate a parent child category relationship when bulk importing
- Get ACF time in His format
- Filtering custom post admin listing page elements based on acf user field
- Parsing value from Lottie JSON file
- How do I add an ACF shortcode to a non-ACF page?
- Convert acf/gutenberg markup to html