Title: Pulling meta separate sliders in wordpress loop
Last modified: August 21, 2016

---

# Pulling meta separate sliders in wordpress loop

 *  Resolved [Apeck](https://wordpress.org/support/users/apeck/)
 * (@apeck)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/pulling-meta-separate-sliders-in-wordpress-loop/)
 * i want to post different metasliders and in my wordpress loop get it to grab 
   each of the sliders separate from the text in there respective posts. I dont 
   want to get it with the get_content function. Thought this would be the place
   to ask as i dont have a clue.
 * Thanks
 * [http://wordpress.org/extend/plugins/ml-slider/](http://wordpress.org/extend/plugins/ml-slider/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/pulling-meta-separate-sliders-in-wordpress-loop/#post-3668366)
 * Hi Apeck,
 * Not sure I understand completely. Do you mean, for example, if you have 5 posts
   in a loop, and each post has a [metaslider] shortcode in it, you want to pull
   out those [metaslider] shortcodes and display those slideshows somewhere else?
 * Regards,
    Tom.
 *  Thread Starter [Apeck](https://wordpress.org/support/users/apeck/)
 * (@apeck)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/pulling-meta-separate-sliders-in-wordpress-loop/#post-3668389)
 * Yes just in a separate div to the content
 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/pulling-meta-separate-sliders-in-wordpress-loop/#post-3668392)
 * Hi Apeck, thats not too easy and not something that would usually be covered 
   by us as support. You might get a better response if you post in the general 
   wordpress forums.
 * To get you on your way, the pseudo code might be:
 * in your loop:
 *     ```
       for each post
           extract the [metaslider] shortcode from the post
           save the shortcode to an array
       end for each
       ```
   
 * then in your div:
 *     ```
       for each saved shortcode in the array
           do_shortcode(shortcode)
       end for each
       ```
   
 * ————-
 * If you just want to display the latest X slideshows then that would be much simpler,
   let me know if thats the case and I’ll write up the code.
 * Regards,
    Tom.
 *  Thread Starter [Apeck](https://wordpress.org/support/users/apeck/)
 * (@apeck)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/pulling-meta-separate-sliders-in-wordpress-loop/#post-3668395)
 * What you have provided is great, thanks for the help.
 *  [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * (@matchalabs)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/pulling-meta-separate-sliders-in-wordpress-loop/#post-3668397)
 * No problem, good luck! If you get close, but not quite there, post your code 
   here and I’ll take a look when I get a few minutes spare.
 * Please consider leaving a review for Meta Slider if you get a moment.
 * Regards,
    Tom.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Pulling meta separate sliders in wordpress loop’ is closed to new replies.

 * ![](https://ps.w.org/ml-slider/assets/icon.svg?rev=3523572)
 * [Slider, Gallery, and Carousel by MetaSlider - Image Slider, Video Slider](https://wordpress.org/plugins/ml-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ml-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ml-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/ml-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ml-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ml-slider/reviews/)

## Tags

 * [loop](https://wordpress.org/support/topic-tag/loop/)

 * 5 replies
 * 2 participants
 * Last reply from: [matchalabs](https://wordpress.org/support/users/matchalabs/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/pulling-meta-separate-sliders-in-wordpress-loop/#post-3668397)
 * Status: resolved