WordPress.org

Ready to get started?Download WordPress

Forums

Post Tiles
[resolved] Using in category (3 posts)

  1. yambanis
    Member
    Posted 1 year ago #

    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/

  2. yambanis
    Member
    Posted 1 year ago #

    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 );

    ?>

  3. Michelle
    Member
    Posted 11 months ago #

    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! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags