• Resolved jlgill

    (@jlgill)


    Is it possible to use do_action() to display the carousel of choice in a template section of my theme? I will not be able to use the widget or shortcode.

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter jlgill

    (@jlgill)

    Oops — I started to ask a question about arguments, but that was using a different plugin.

    • This reply was modified 6 years, 9 months ago by jlgill.
    Plugin Author rameez_iqbal

    (@rameez_iqbal)

    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.

    Thread Starter jlgill

    (@jlgill)

    This has been resolved.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘do_action’ is closed to new replies.