Support » Fixing WordPress » How Do I Show Only Certain Categories

  • Resolved timtroutman

    (@timtroutman)


    My code is :<?php query_posts('showposts=1&cat=blog'); ?>

    It does show one post only but it does not show posts with the slug “blog”. It shows all posts. I tried using a numeric identifier for the category and that just comes up with a file not found error or something.

    What am I doing wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How Do I Show Only Certain Categories’ is closed to new replies.