Title: Template with PHP
Last modified: August 21, 2016

---

# Template with PHP

 *  Resolved [fireaaway](https://wordpress.org/support/users/fireaaway/)
 * (@fireaaway)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/template-with-php/)
 * First of all – great plugin, thanks a lot!
 * I’m having a minor “issue” (aka lack of knowledge) – I’ve created a template 
   that works great when I use a shortcode, but I need to implement this onto index.
   php and I can’t figure out how to call it.
 * With a shortcode I’d use this to get the result I want:
 * [wp-tiles template=”Template_Name”]
 * How do I get the same results by using a php tag? It currently looks like this
   and I’m not sure where to call the template.
 * <?php if ( function_exists ( ‘the_loop_wp_tiles’ ) ) the_wp_tiles( ); ?>
 * Any help would be great, thanks!
 * [http://wordpress.org/plugins/wp-tiles/](http://wordpress.org/plugins/wp-tiles/)

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

 *  Thread Starter [fireaaway](https://wordpress.org/support/users/fireaaway/)
 * (@fireaaway)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/template-with-php/#post-4289117)
 * Oups – literally seconds after I posted this I figured out I can just remove 
   all the other templates in the settings and only leave the one I want, that way
   it turns into the default template. Solved my problem without having to deal 
   with the php tag! Typical 🙂
 *  Plugin Author [Mike Martel](https://wordpress.org/support/users/mike_cowobo/)
 * (@mike_cowobo)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/template-with-php/#post-4289471)
 * Good! 🙂 For future reference, you can pass extra arguments to `the_wp_tiles`
   to select a template, like this:
 *     ```
       the_wp_tiles( array(
           'template' => 'MyTemplateName'
       ) );
       ```
   
 * This doesn’t work with the_loop_wp_tiles however.
 * Cheers!
    Mike

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

The topic ‘Template with PHP’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-tiles_8f8e84.svg)
 * [WP Tiles](https://wordpress.org/plugins/wp-tiles/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-tiles/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-tiles/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-tiles/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-tiles/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-tiles/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Mike Martel](https://wordpress.org/support/users/mike_cowobo/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/template-with-php/#post-4289471)
 * Status: resolved