Ok, That was so nice for me. I and my mate solve the problem.
We got the images ids and put into it in a var. That was array so we put it in explode function so that we break the string into an array, and finally, we run a foreach loop to print those ids.
My code
<ul class="client-list">
<?php global $blind_opt;
$logo = $blind_opt['blind_logo'];
$logos = explode(",", $logo);
foreach($logos as $image):
?>
<li>
<a href="#"><img src="<?php $imag_var = wp_get_attachment_image_src($image); echo $imag_var[0]; ?>" alt=""></a>
</li>
<?php endforeach; ?>
</ul>
Related Posts:
- Endless loop with wp_insert_post and wp_update_post
- Add Incrementing ID to each paragraph in the_content
- Loop through child images of a parent for a Nivo Slider
- post__in – Placing content from a foreach loop inside of an array
- In a foreach loop, how do I target the last item in the loop?
- How to iterate through database until it find a match
- Customize WooCommerce Product Images (Placement and size) [closed]
- Cannot display or echo alt text on featured image
- Get all posts including sticky ones with get_posts(),setup_postdata(), and foreach loop?
- How to print out menu names in the foreach loop?
- show random image in loop if image is not set
- Add class to last 3 posts in loop
- How to loop through all the attached images in a post, and get their url one by one
- Output meta into arrays
- Need to add class to first element in a foreach loop
- Foreach displays from last to first
- Simple foreach loop help needed in wordpress “the loop”
- Only show first image in foreach loop
- Closing the loop…featured image variable based on post id
- using wp_get_attachment_image_src in foreach loop
- Multiple instances of Featured Image Thumbnail As A Background On Homepage
- How to check all items in a loop have post thumbnail?
- Thumbnail Image Rounded Corners w CSS (or any other good method)
- Get gallery in loop through ajax
- Get a specific size from wp_get_attachment_image_src
- what’s the syntax for if the image exists get the image?
- Return only one post format in index.php [duplicate]
- Retrieving specific images from Media Library
- Get featured image outside the loop using foreach
- Why loop renders only last metabox from array? [closed]
- Cant pull in featured Image
- Foundation modal in wordpress php loop
- ACF field not appearing correctly in loop
- Get gallery and product gallery images full size
- Building theme so user can change header image [closed]
- Is there a way to target only images within the loop?
- Change the way wordpress outputs images or image galleries
- Loop doesn’t give the thumbnail the right parent (or class)
- Eliminate duplicates in a foreach loop [closed]
- Wrap every 2 divs in row – for each loop [closed]
- ACF loops false value with repeater and checkbox
- Get post content from outside the loop
- How to Change Loop to Order Posts by Views (using wp-postviews plugin)
- Is `query_posts` really slower than secondary query?
- Are there any scenarios where the query_posts may be used?
- Display subpages under parent page as a list within a loop
- When to use wp_reset_postdata();
- Related Posts loop – offset
- Custom post type loops with different page templates
- Too many nested wp_query loops in this hypothetical query?
- Showing current subcategory
- get understrap pagination to work with custom query
- Displaying Only Certain Tags in Loop
- Generating dynamic Tabs with multiple query post loop
- How do I override part of the main loop in my child theme?
- Way to display “Yesterday”, “Today”
- CPT + CMB2: data not displaying for only first post in loop
- Only display videos and images in the_content() within loop
- Get search.php results in header.php?
- Recent posts on a static home page
- Query last updated posts (posts updated in the last 24 hours)
- I write simple wordpress loop for taxonomy.php file but don’t show result
- Publish Categories for a particular Author on a given Post
- Can’t find infinite loop cause
- How to hook into container
- WP_Query fails despite having 1 post
- How to add a specific div element to the first post in a row?
- Loop increase number
- Show recent posts starting at a specific number archive
- Get paged outside of loop?
- WP Query Leads to 502 Bad Gateway (Timeout Because Query Takes Too Long)
- WordPress İmages Upload & Delete Error
- Echo array value
- How to break up php code to avoid echo
- static page with multiple loops breaks post pagination
- new custom theme – posts displaying on top of one another
- Help with if and else statement
- Building a form with WordPress, and also pulling that data for a user page
- Products listing check if meta checkbox is checked
- How do if all posts has this category ID then do this
- is it bad to copy the loop for a template?
- I want to load post in bootstrap Modal dynamically
- View tag description on page
- Why my loop is repeat?
- How to display just video post format?
- Is it possible to get a post ID of a 2 different custom post types loop embedded in the same post to perform update_post_meta from the frontend?
- Display product attributes for current product
- Make custom WordPress comments list
- Sorting posts to make those with post thumbnail show up first
- Best way to check if a post with specific meta exists
- Default Template infinite loop of Title
- get_posts and wp_autop (remove filter)
- Trouble preventing duplicate posts between 2 loops on homepage
- How can I put a custom field as the link of a button shortcode?
- How can I access ‘key’ and ‘value’ from an array in a for loop?
- is there away to hide php code in wordpress not to show in PAGES
- Error in Wordprewss loop for page template [closed]
- Tags outside the loop
- Add/alter image attribute before render
- wp_mail function not working in user query loop