Did you tried dumping the value of $carousel_image
For image field to return Array, return_type must be set to array
https://www.advancedcustomfields.com/resources/register-fields-via-php/#field-type%20settings
/* (string) Specify the type of value returned by get_field(). Defaults to 'array'. Choices of 'array' (Image Array), 'url' (Image URL) or 'id' (Image ID) */ 'return_format' => 'array',
Also what’s the use of save_format in your code . I can’t find it in the documentation.
Related Posts:
- Inserting Gravity Form checkbox values into Advanced Custom Fields [closed]
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- Conditional statement for parent, child and grandchild pages
- The values of custom fields are not available functions.php
- Unique key for each row in a repeater field
- How to Explode a Textarea Field and Echo each line separately, wrapped with HTML
- Advanced Custom Fields Image Field returning ID instead of URL [closed]
- Can an array be used as a meta_query value?
- ACF check if variable has http, if else return string
- Looking for most performant way to execute several similar WP queries within shortcodes
- 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?
- ACF page while loop breaks footer while loop
- Change output based on text field value
- ACF: how do I get the fields and its values of a specific group?
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Saving an array of dynamic repeater data as post_meta
- Output ACF repeater on frontend user’s profile page (created with Ultimate Member) [closed]
- Remove the first 5 characters of the_title and orderby that
- Unread Repeater field IMG alt not working
- How to use thumbnail size of image if I’m only using src to get image
- Slick + PHP + ACF + JQuery slide reveal not working
- Advanced Custom Fields – display label and value only if value entered
- Upload non-featured image to image field
- HTML Special Characters in URL string [closed]
- 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)
- InnerBlocks with allowedBlocks not working with acf_register_block
- ACF & Bootstrap Gallery Shows Blank Slides [closed]
- Conditional multidimensional arrays and array_map
- ACF Repeater Pagination stopped working since upgrade to php7.2
- what is the method to echo class attribute inside the i tag? [closed]
- Refactoring long if/else php chains
- Getting taxonomy category Image from ACF [closed]
- Show get_sub_field value if it exists [closed]
- Update post meta – Custom field does not match meta-key
- ACF Unexpected T_CONSTANT_ENCAPSED_STRING [closed]
- Including Custom fields within the_content
- Remove Post if Advanced Custom Field is checked to fix paging
- Update user repeater meta (ACF) with another user meta field value
- Add class to all img if they have a certain ACF field
- Foreach loop is unexpectedly outputting an extra empty a tag
- Delete images from media library when user deletes an image from ACF Gallery
- How to store checkbox data for individual users?
- Display acf taxonomy attachment
- Nested Queries of decreasing specificity
- Get main parent category for post (WordPress/Advanced Custom Fields)
- ACF: Display Google Map in frontend issues
- Bootstrap 4 Carosuel with ACF Repeater field
- How to display acf field values from home page on all pages?
- ACF Taxonomy field values not select in backend
- If Statement is Ignored?
- Use WPQuery to match to specific repeater row in post
- Query on a repeater date (acf)
- ACF values to Script with auto refresh
- ACF relationship on user profile page used for allowed access
- ACF – Can’t get custom post type by taxonomy
- Advance custom fields variable with if statement & Function
- ElseIf Statement with ACF Group field
- Possible to edit custom date field and display?
- Place product field value as variable in php
- ACF – Get ID of relationship field in flexible content
- get_template_part() not working with Advanced Custom Fields plugin
- List all ACF field values across every post on one page
- Get list of posts from attachment
- Javascript Tab Gallery with Advanced Custom Fields
- How to output values from a loop into a javascript array
- Pulling Products from an API
- Scheduling a post using publish date from a custom field. Resulting post is set as published in the future instead of scheduled
- Generate a radius search of custom post type locations
- WooCommerce Custom Tab with ACF Repeater Field
- Ordering / grouping posts by datepicker ACF
- Position a repeated article blocks
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- Display a single row from nested array of custom field data
- ACF Images If/else
- Page returning ID from array, how to return the correct values for post in acf wordpress
- Sort by multiple options in custom field
- If or/and statement advanced custom fields [closed]
- Top menu disapears in Category Pages when filtering using ACF
- ACF loop and php formatting
- the_post_thumbnail unless video id is added
- Custom field within shortcode
- ACF allow zero as a value
- Add comma between variables [closed]
- Advanced custom fields Repeater conditional statement not working [closed]
- ACF | WooCommerce | Theme Development | How to include a /template-part/ that makes use of ACF’s on a custom WooCommerce homepage?
- Custom WordPress Function – Adding items from Foreach Loop into an array and Updating Field based on array of IDs (ACF + WooCommerce)
- Show button in header when product custom field is not empty
- advanced custom fields: repeater field within conditional statement [closed]
- How can I get values from a custom post type depending on where I click on my SVG map?
- Creating posts with php-script + csv
- “acf/load_field” Critical error upon saving/updating WooCommerce products [closed]
- How to get ACF field to show up on all posts on front end?
- Cannot Access ACF Field Values via my Plugin
- How to create advanced custom fields for backend content
- Add up all numbers from a WordPress query [closed]
- Why does my custom slug only show in Gutenberg editor after page refresh?