Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter k201244

    (@k201244)

    So i created a new file new_category.php, uploaded to the server. But how can choose in back-end this specific template of category? Probably i’m going in the wrong direction 🙂

    <?php
    echo do_shortcode( '[thumbnailgrid cat="7" posts="20" type="post" order_by="date"]' );
    get_template_part( 'content', get_post_format() );
    endwhile;
    // Previous/next page navigation.
    twentyfourteen_paging_nav();
    else :
    // If no content, include the "No posts found" template.
    get_template_part( 'content', 'none' );
    endif;
    ?>
    Plugin Author A. Jones

    (@nomadcoder)

    Did you get this working too? I had to do something similar recently so if you are still having problems let me know.

    Thread Starter k201244

    (@k201244)

    It’s work. It looks great.

    <?php	echo do_shortcode( '[thumbnailgrid height="150px" width="230px" cat="132" posts="99" type="post" order_by="author" ]' );
    else :
    // If no content, include the "No posts found" template.
    get_template_part( 'content', 'none' );
    endif;
    ;>
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Archive/category’ is closed to new replies.