Support » Theme: Flato » Category Posts in Pages

  • Resolved Giiyom



    I’m using your theme (which I rly like btw) and I would like to know if you could help me out with adding Category posts to a specific Page.

    This is the Page I’m using ( (dota-2.php)

    I based it on the Archives.php file but I can’t figure out how to expose specific categories.


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

    In fact it was really simple.

    Here is the simple code to achieve this :

    <?php query_posts('category_name=dota2'); ?>
       <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
       <?php get_template_part( 'content', get_post_format() ); ?>
       <?php endwhile; endif; ?>


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category Posts in Pages’ is closed to new replies.