Skip to content

Shortcode usage on index.php #371

Answered by crftwrk
ersingo asked this question in Q&A
Jan 20, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Use the do_shortcode to wrap the shortcode like this:

<?php echo do_shortcode('[bs-swiper-card type="post" category="cars, boats" order="ASC" orderby="date" posts="6"]'); ?>

Now you can use shortcode in .php files.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ersingo
Comment options

You must be logged in to vote
1 reply
@crftwrk
Comment options

Comment options

You must be logged in to vote
1 reply
@crftwrk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #370 on January 20, 2023 10:06.