0

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

3
  • Can we see your code please? Commented Jan 13, 2018 at 3:52
  • Please share a simplified version of your single.php file with <?php echo do_shortcode('[wcp-carousel id="37122"]');?> in the spot you want it and explain what is or isn't happening. Commented Jan 13, 2018 at 3:52
  • Please read How to ask. Please provide a Minimal, Complete, and Verifiable example. Please read How do I format my posts using Markdown or HTML?. Commented Jan 13, 2018 at 4:33

1 Answer 1

1

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 !

Sign up to request clarification or add additional context in comments.

Comments

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.