简体   繁体   中英

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

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

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 !

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM