Title: Call through PHP
Last modified: August 22, 2016

---

# Call through PHP

 *  Resolved [ak.azmi](https://wordpress.org/support/users/akazmi-1/)
 * (@akazmi-1)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/call-through-php/)
 * Hi.
    Great plugin, truly. I am wondering about how to call the slider through
   PHP (adding it inside the loop using function).
 * Thanks.
 * Azmi
 * [https://wordpress.org/plugins/cr3ativ-carousel/](https://wordpress.org/plugins/cr3ativ-carousel/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [akyusa01](https://wordpress.org/support/users/akyusa01/)
 * (@akyusa01)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/call-through-php/#post-5590089)
 * 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 ?>
 *  [fabioc](https://wordpress.org/support/users/fabioc/)
 * (@fabioc)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/call-through-php/#post-5590126)
 * could you please give an example snippet for adding the carousel category “example”
   into the template.
 * Thanks!
 *  [fabioc](https://wordpress.org/support/users/fabioc/)
 * (@fabioc)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/call-through-php/#post-5590127)
 * didn’t know that it’s possible to simply add
    `echo do_shortcode( '[carousel-
   loop columns="1" category="contact"]' );`
 *  Plugin Author [akyusa01](https://wordpress.org/support/users/akyusa01/)
 * (@akyusa01)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/call-through-php/#post-5590128)
 * Glad you got it sorted 🙂
 *  [pageii](https://wordpress.org/support/users/pageii/)
 * (@pageii)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/call-through-php/#post-5590135)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/cr3ativ-carousel_5b659b.svg)
 * [Cr3ativ Carousel](https://wordpress.org/plugins/cr3ativ-carousel/)
 * [Support Threads](https://wordpress.org/support/plugin/cr3ativ-carousel/)
 * [Active Topics](https://wordpress.org/support/plugin/cr3ativ-carousel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cr3ativ-carousel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cr3ativ-carousel/reviews/)

## Tags

 * [functions](https://wordpress.org/support/topic-tag/functions/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 5 replies
 * 4 participants
 * Last reply from: [pageii](https://wordpress.org/support/users/pageii/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/call-through-php/#post-5590135)
 * Status: resolved