WordPress.org

Support

Support » Plugins and Hacks » Inserting into homepage with index.php

Inserting into homepage with index.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • I figured it out.
    I used this: <?php echo do_shortcode(‘[post-tiles]’) ?>

    the problem i’m now having with this is that i can’t use any of the modifiers eg posts or categories. I keep getting a T_LNUMBER parse error. Any ideas on how to get around that?

    I discovered the solution. You need to use double quotation marks, not single.

    eg categories=”10″ or posts=”8″ rather than categories=’10’ or posts=’8′.

    To summarise, I replaced an image slider with post tiles using the following code in the index.php file of a theme.

    <?php echo do_shortcode(‘[post-tiles categories=”51,6″ posts=”10″]’) ?>

    Plugin Author ethanhackett

    @ethanhackett

    Awesome thanks for sharing this. This could help others looking to embed Post Tiles elsewhere. I’ll revisit this and find a way to put this in the documentation for others.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Inserting into homepage with index.php’ is closed to new replies.