You can get images with foreach loop but first you have to print_r($images) and then get the value of the array something like this $images[‘image’] or $images[‘src’] or $images[‘url’] etc. But first check is there any record where you are getting get_sub_field(‘image’) all images.
<?php if ( $images = get_sub_field('image') ) :
print_r($images);
foreach($images as $image) {
?>
<div class="inner">
<?php
echo $image;
?>
</div>
<?php } endif; ?>
Related Posts:
- ul list with only as many li’s as filled custom fields
- What am I missing in this Code Block?
- get_field values for each post on home page using wp_add_inline_style
- Where are custom field values stored in the database
- Add custom field to the archive page?
- Matching Serialized Arrays with meta_query
- Unable to get Preview of Uploaded image within a Custom Meta box
- Order posts by custom field and if custom field is empty return remaining posts
- Change content before writing to database
- Order Custom post type loop by custom field (datepicker)
- Calling Specific Pages with wp query Part II
- Loop through two different sets of custom fields
- Copying Custom Meta Values from existing post to a duplicate post
- Calculate the sum of certain the_sub_fields
- Login & Register & Custom details WITHOUT plugin
- Send Multiple Custom Field Values Through the URL
- ACF won’t load from a custom JSON location
- How to use max and min values of custom fields
- Echo values from custom field outside loop php
- Calling custom fields for pages (not posts)
- Duplicate posts being displayed when querying Custom Fields
- Update posts after populating ACF field value [closed]
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Transfer self made functions.php custom fields to Advanced Custom Fields [closed]
- Loop to display random posts only if a custom field matches category
- ACF: How to get the full field name (meta_key) by a field key?
- Dynamically fill a post custom field with post publish date
- How can I store a file in the database in the same way WordPress and ACF do?
- Will loading too many ACF Fields cause slow down?
- How can I show custom fields in the loop only to specific user roles?
- Calling the “wp-link-wrap” pop-up modal
- Print custom field in Query Loop block
- Limit the number of acf content when displaying in post loop [closed]
- Order RSS content by an advanced custom field value
- Get an advanced custom field after post publish
- How to create a dropdown select of all items in an ACF field group
- custom-meta-box checkboxes from loop won’t save
- Sort custom post type by multiple custom fields
- List users by sum of all their posts’ custom field values
- Custom Query based on custom field of a single post
- Vimeo thumbnails
- Advanced Custom Fields WYSIWYG More tag
- Custom fields issue [closed]
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- How to copy data from a custom field to the post_content?
- WordPress creates new lines in postmeta table on post update
- Display custom field from the front page on another page
- Loop through incrementing custom fields
- How to Pass values to Custom Field through PHP in WordPress Posts?
- Advanced Custom fields not available yet during publish_page action
- The conditional logic only works to show or hide?
- Custom field Search with Relavanssi
- Collect Data from NEXT item while in loop
- How to show content of custom fields in search results?
- Display metabox title for custom fields with values
- use custom field value as post category in loop
- Filter or order based on custom field
- Need to search a custom field (ingredients, one long string per post), but want it to allow phrases/non-exact matches
- Compare ACF date field (if exists) and post date and order DESC
- Rewrite comment form post ID on submit
- ACF field group not showing in page
- How to show ACF fields in Gridbuilder custom block
- How to set up page fields with gutenberg instead of ACF
- Shortcode for Custom Field of Media Attachment (to use with Featured Images)
- ACF multi taxonomy on filterable gallery
- How to use ACF with javascript to update custom field values?
- Weird custom fields data lost
- Retrive acf fields in publish_post action for wp_mail
- User Filter Options on Archive Page
- Getting user’s data, by custom field lookup (meta)
- Custom meta boxes – add php code inside?
- get wordpress post loop by meta box date
- Outputting custom field on home.php not outside of blog list
- How to delete attachments associated with custom field type when post property changes? [closed]
- Page template is missing fields or is invalid when I updating the template
- Metabox value for post loop?
- Using ACF Custom Field value in a URL with do_shortcode() [closed]
- Get meta value when the page is a blog archive
- display Flexible Fields from options
- WordPress taxonomy child image
- Filter and display a specific custom field value [closed]
- WP_query returns error when used for custom widget
- Display different category template if custom field is checked
- How to filter post using custom feild value in shortest and longest duration?
- Query Posts Via WordPress URL
- How to Order Posts by Custom Fields?
- Fetch data from a WP page with same name as current username
- Get custom field from other post in carousel
- I want to add a custom field in the rss title of each post, but don’t want it to be shown on the site
- I want my post to republish again after adding a custom field
- Filtering posts by WORD in custom field
- Advenced custom fields auto fill problem
- Display custom field outside the loop
- Order by a meta field in query loop
- How to get all specific fields from one ACF Group?
- Truncating characters in Advanced Custom Fields works some places but not others?
- save all acf options in one meta_value [closed]
- Conditional display based on ACF checkbox
- acf field repeater link don’t work
- How to add an ACF only for parent term?