Thread Starter
jlgill
(@jlgill)
Oops — I started to ask a question about arguments, but that was using a different plugin.
-
This reply was modified 7 years, 9 months ago by
jlgill.
Hi, you can render carousel from template files using function do_shortcode
<?php do_shortcode('[wcp-carousel id="225"]'); ?>
Thread Starter
jlgill
(@jlgill)
The following is causing this error: Warning: Illegal string offset ‘hover_effect’ in C:\xampp\htdocs\personnelplus\wp-content\plugins\responsive-posts-carousel\carousel.class.php on line 289
Any ideas?
`<div class=”from-blog”>
<div id=”from-blog-wrap”>
<div>
<h2 class=”boxtitle wow bounceInLeft” data-wow-delay=”0.1s”><?php echo esc_attr($firmness_theme_options[‘blog_section_title’]); ?></h2>
<?php
do_shortcode(‘[wcp-carousel id=”225″]’);
?>
</div>
</div>
</div>’
Thread Starter
jlgill
(@jlgill)
Actually, that shortcode was wrong, but I’ve corrected it with the correct shortcode and now it displays nothing. Here’s the correct shortcode:
`<h2 class=”boxtitle wow bounceInLeft” data-wow-delay=”0.1s”></h2>
<div>
<?php echo esc_attr($firmness_theme_options[‘blog_section_title’]); ?>
</div>
<div>
<?php do_shortcode(‘[wcp-carousel id=”2306″‘); ?>
</div>’
Thread Starter
jlgill
(@jlgill)
It was a syntax error. Got it going. Now to limit the posts to a particular category.