WordPress.org

Support

Support » Plugins and Hacks » Post Tiles » [Resolved] Using in category

[Resolved] Using in category

  • yambanis

    @yambanis

    Hi, I need to use post-tiles in category.

    In order to get the cat number I’m using get_cat_ID

    the problem is that I can’t use the shortcode to get the tiles… What am I doing wrong?

    Thanx

    Taty

    <?php
    $category_id = get_cat_ID(single_cat_title( ”, false ));
    $catnum = ‘post-tiles categories=”‘ . $category_id . ‘” posts=”12″‘;
    echo $catnum;
    echo do_shortcode(‘[$catnum]’);

    ?>

    http://wordpress.org/extend/plugins/post-tiles/

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

    @yambanis

    IT’S ALIVE!!!!!!

    ;))))

    <?php
    $category_id = get_cat_ID(single_cat_title( ”, false ));
    $catnum = ‘[post-tiles categories=”‘ . $category_id . ‘” posts=”12″]’;
    echo do_shortcode( $catnum );

    ?>

    OMG I just wanna say you have made me so happy with this code… been trying to figure this out all day, now my category pages finally work. THANK YOU! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Using in category’ is closed to new replies.
Skip to toolbar