See here for ACF image docs.
https://www.advancedcustomfields.com/resources/image/
If image field is set to return as an array then you need store the image subfield into a variable and use the variable to output the array keys.
So in your case, it would be like this…
<?php while( have_rows('logo_list') ) : the_row();?>
<?php $image = get_sub_field('image'); ?>
<li><img src="<?=$image['url']?>" alt="<?=$image['alt']?>" /></li>
<?php endwhile;?>
Use the code below inside your loop to dump your $image
variable data so you can see all the image sizes and other image data.
echo '<pre>' . print_r($image, true) . '</pre>';
Very strange what is happening here.
Before your loop try adding this to see all the data in the field.
<?php global $post; ?>
<?php $field = get_field('logo_list', $post->ID); ?>
<?php echo '<pre>' . print_r($field, true) . '</pre>'; ?>
Post the output when you’ve done this.
Related Posts:
- DIV containing iframe disappears below break point of 992 in Oxygen Builder
- WordPress Theme Preview Image
- The the_post_thumbnail without srcset?
- Get the first image from post content (eg.: hotlinked images)
- How to move page template files like page-{slug}.php to a sub-directory?
- WooCommerce shop page to use my custom template [closed]
- How to modify an image block in Gutenberg WordPress 5?
- How can I set image sizes and still have responsive images using the srcset attribute?
- How to move page templates to custom folder?
- Add default Backgrounds
- Create “File-less” Page Template in Functions.php
- Edit srcset and sizes attributes in Gutenberg image, cover and gallery – blocks
- Is it possible to manipulate the list of page templates?
- wp_get_attachment_image_attributes not working for me
- Specify image dimensions
- Adding items to page template dropdown on Page Edit Screen
- How to get gallery images?
- Adding Content Areas to Custom Page Template
- add_image_size is scaling, even though crop is set to true
- Featured Image in 4.4 should be larger on mobile device
- How to use the responsive images feature from WP 4.4 in your themes
- Confused about image sizing business in WordPress
- Unexpected width and srcset attributes for the_post_thumbnail();
- Trouble with conditional tags
- How do I get gallery thumbnail URL and change the default thumbnail size?
- Responsive class to all the images in the content
- Pagination & get_pages?
- How wordpress handle upload images and how to use them in the code
- Modify available templates (in dropdown)
- What is the best way to build home pages with a lot of sections for distributable themes [closed]
- Theme logo metadata into template file
- Templates dropdown not appearing using _s theme (underscores)
- WordPress creating images if uploaded image is greater than 960px on one side?
- Where to put custom page templates in theme?
- How to add pages in wordpress using codes?
- Injecting pre-defined text from custom page template to editor
- How to fix WordPress images not showing up in local hosted XAMPP server?
- Custom theme template files
- Is it possible to have a Theme with built-in physical page files?
- How to use shortcode inside of shortcode in theme
- Change Image Sizes for Mobile Theme
- Stop WordPress from showing images on non post pages
- How to make excerpt image be full size instead of thumbnail?
- How to add cropped custom header image?
- Is there a way to serve different resolution images to different devices?
- How can I scale down the width of images in bulk that are embedded in posts throughout the site?
- Trouble in creating a custom template on twentyeleven theme
- Add image URL automatically to custom field?
- How can I remove image taxonomy pages from my theme and from Google?
- Dynamic Image Links Depending on Excerpt/’Single Post’ View
- Designing a custom archive.php inspired by the Autofocus theme
- Custom search template is showing 404 when adding query string
- WordPress Animation Adjustments
- theme directory fallback image outputs url and not the image
- Post Featured Image Custom Sizing?
- wanted to sort the wp_query array by two ACF field (Year and month)
- A Reviews Page is Showing root Index.php instead of Template-Page
- No templates for condition page.php Elementor
- Custom themes that won’t work when theme is changed
- Image cropping isn’t working correctly when using Offload Media
- Show Yoast SEO meta tags in Custom WordPress Templates (Theme)
- How to show metabox on page if it is using a template
- How to add an image to a theme page template in code?
- Template for front page (latest posts)
- Responsive Images with art direction
- Group several custom global page templates in sub-folder
- Problem with Displaying Custom Theme Page’s Content
- Customizer Image-Picker Preview Not Working
- Uncaught Reference error in Retina.js
- Can’t upload images on new theme
- Images use & location, on new wordpress theme
- How to show children pages as array
- Different stylesheet for different pages not working fully
- image sizes – finding and removing
- Create a variable with string, array or multiple values
- Adding a Class to an Getting From Post Content
- Why WordPress gets old templates code instead of the last updated ones
- Create image with imagepng() (fails at header)
- Can you create a custom page with content in the center already defined?
- How do I keep images in posts below a certain size without editing the post?
- Any disadvandages if I style the wordpress align classes without img and .wp-caption prefix
- the_post_thumbnail fetches wrong image
- Custom image size doesn’t work
- Retina ready for uploaded images which are cropped
- Paginated WP_Query doesn’t return 404’s, even when posts don’t exist
- Loop inside page template not working
- Add rel to all images in a post
- How can I add a single image from a gallery into the page header?
- How can i display a 4 diferent themplate for the archive page
- How to split the site’s layout without damaging this layout? [closed]
- Isotope overlapping .items because of featured images – HELP! [closed]
- Is there a way to have WordPress autodetect page templates in the page-templates directory and any sub-folders?
- What is the point of using the front-page.php template? [closed]
- Custom Theme functions.php – Using add_settings_field and input type=”file” to set custom logo
- How to automatically set a Template Page Name next to a page in menu screen such as WooCommerce pages, front page, or posts page in wordpress?
- I want to resize post featured image without cropping image. How?
- Convert base64 string to WordPress attachment uploads multiple images instead of a single one
- WP “optimizing” PNGs into thumbnails 5X larger than originals – FIX
- WordPress function::: get_header();
- optimized PNGs 5X larger than originals