• Resolved Apeck

    (@apeck)


    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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • 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

    (@apeck)

    Yes just in a separate div to the content

    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

    (@apeck)

    What you have provided is great, thanks for the help.

    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.