• Resolved fireaaway

    (@fireaaway)


    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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fireaaway

    (@fireaaway)

    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

    (@mike_cowobo)

    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.