0

Actually I need to gallery in any new post so i use shortcode for making gallery for every new post. I use images and videos in slider. problem is that I have custom html slider need to convert dynamic. so how to extract shortcode and use images and videos in <li></li>tag?

2
  • What exactly do you want? Different output for all galleries? Some galleries? Different gallery-like shortcode? Commented Apr 22, 2014 at 17:47
  • every gallery are different for new post i created custom meta box for uploading images through plugin. whose automatically generate shortcode for images. but now i confuse how to use shortcode in wordpress loop to implement in html slider. Commented Apr 22, 2014 at 17:56

1 Answer 1

0

Have you tried

echo do_shortcode('[your_shortcode attribute1="value" attribute2="another"]');

this should fire the shortcode function in PHP

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.