• Hello,
    i want to add wp tiles to my index.php homepage with php code
    i try to to add `<?php if ( function_exists ( ‘the_loop_wp_tiles’ ) ) the_wp_tiles( array(
    ‘template’ => ‘MyTemplateName’
    ) ); ?>and<?php if ( function_exists ( ‘the_loop_wp_tiles’ ) ) the_wp_tiles( ); ?>`
    but is not working ! i using the wptiles 1.0 beta version.
    please help me ?

    https://www.ads-software.com/plugins/wp-tiles/

Viewing 1 replies (of 1 total)
  • Plugin Author Mike Martel

    (@mike_cowobo)

    Hi there! Thanks for testing the 1.0 beta version of WP Tiles.

    Are you trying to replace the loop with WP Tiles? In that case replace the_wp_tiles with the_loop_wp_tiles in your snippet above. So:

    <?php if ( function_exists ( 'the_loop_wp_tiles' ) ) the_loop_wp_tiles( ); ?>

    The workings of the template tags (the_wp_tiles() etc.) has changed a bit in the new version and I haven’t gotten around to documenting it completely yet, but it should be compatible with the old ways, and the above snippet should work.

    If the above doesn’t work, you can continue debugging as follows:

    1) Make sure that the WP Tiles plugin is activated
    2) Use the [wp-tiles] shortcode somewhere to make sure that there are no compatibility problems with your theme
    3) Make sure that index.php is actually the template that is being used. Use Debug Bar for this, or add something unmistakable to index.php (like <h1>If you can read this, it worked!</h1> or something). Your choice.
    4) If all the above are correct, the Tiles should show using the template tag.. post back here if it’s still not working.

    Cheers,
    Mike

Viewing 1 replies (of 1 total)
  • The topic ‘How to add tiles to index.php’ is closed to new replies.