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
- WordPress Loop inside Loop?
- I write simple wordpress loop for taxonomy.php file but don’t show result
- How to control WordPress image metadata (using Imagick)?
- Custom Tag Description unable to display just below and outside of the Loop
- Why my filterable portfolio page work not perfectly between slug button and slug output WORDRPESS?
- Filter the loop by categories using checkbox form
- Missing image in gallery shortcode in custom feed
- Shortcode with a foreach and arguments
- Split loop to load WordPress gallery into Bootstrap modal and carousel
- Styling text and images in the_content()
- Get the post ID and display the images
- Responsive Header for Phone
- Orderby my needs in foreach loop like by title or something?
- Get single post from tags array
- A smarter way to display multiple loops inside a page template
- Reprinting tags with all attributes
- Iterate through posts based on array of categories
- Loop in Related Posts WordPress
- Conditional query that displays on Woo product attribute pages
- Including post thumbnail url in loop’s post object to reduce number of queries
- get author_name from queried post
- Custom post type appearing within the previous one on archive.php
- Displaying Woocommerce Product Category in WordPress
- Duplicated posts on category page
- WordPress loop: exclude if it is the latest post
- How do I go about looping through a advanced custom field on a particular page inside of another page
- How to get next image with this code from same post?
- Unread Repeater field IMG alt not working
- How do I use AJAX Query in my posts loop?
- How to show posts with multiple tags on tag.php?
- Apply an Incremental Counter in an Array Function
- Calling & display certain product category loop and pagination on the homepage
- How can I add extra word in permalink when someone click download button?
- Template structure
- Can’t upload image using media_sideload_image
- Increase offset while looping
- How to show “teaser” posts on blog / archive pages, otherwise full posts
- woocommerce get_price_html not pulling in correct price
- Make blog page show 10 on first page, 9 on every other page
- Exclude posts from main loop based on meta value
- Blog posts repeat
- Upload multiple images to a Woocomerce product
- How to use thumbnail size of image if I’m only using src to get image
- How to add condition in wordpress loop? [closed]
- How to inject posts from certain category on home page
- Woocommerce : Can’t get product info in loop
- Trouble Formatting DateTime
- Order archive results by post id in custom taxonomy template
- Using an ACF field from a page within a post loop?
- Duplicate posts in paginated results
- Publish Categories for a particular Author on a given Post
- How to set variable, pass it to a partial file and remove it after?
- how to refresh div on template part?
- Detect if current page is front page within custom query
- Output loop leveraged shortcode twice on one page
- The Loop – mixed ASC and DESC order
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- Filter the_posts doesn’t work on search page
- Accessing an image folder inside public web directory