Home how to use shortcode in my single.php file(below posts) in wordpress?
Reply: 1

how to use shortcode in my single.php file(below posts) in wordpress?

user9211600
1#
user9211600 Published in 2018-01-13 03:48:49Z

can i ask how to make my shortcode usable when i put it into my single.php file? I want to put a carousel slider for posts below every single post.

i use wcp-carousel" slider, and the shortcode that i need to put inside is:

[wcp-carousel id="37122"]

Please help me to activate it so the carousel slider can work.

The plugin name is : "Responsive Posts Carousel"

I already have tried this: thing 01

user9211600
2#
user9211600 Reply to 2018-01-13 03:53:53Z

i used "[wcp-carousel id="37122" order="DESC" orderby="date" count="10"] " with :

<?php echo do_shortcode('[shortcode]');?>

=>

<?php echo do_shortcode('[wcp-carousel id="37122" order="DESC" orderby="date" count="10"]');?>

And it worked !

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.300135 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO