Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author akyusa01

    (@akyusa01)

    You could just use the text based shortcode, no?

    But if you wanted to call it into a template as in a ‘loop’ then you could just try this:

    <?php
    $temp = $wp_query;
    $wp_query = null;
    $wp_query = new WP_Query();
    $wp_query->query(‘post_type=cr3ativcarousel’.’&paged=’.$paged);
    ?>

    <?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>

    YOUR HTML LAYOUT FOR THE LOOP HERE

    <?php $wp_query = null; $wp_query = $temp; // Reset ?>

    could you please give an example snippet for adding the carousel category “example” into the template.

    Thanks!

    didn’t know that it’s possible to simply add
    echo do_shortcode( '[carousel-loop columns="1" category="contact"]' );

    Plugin Author akyusa01

    (@akyusa01)

    Glad you got it sorted ??

    Hi, is there a way to feed ids to Cr3ativ instead of the default category parameter?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Call through PHP’ is closed to new replies.