Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Location
    Dallas, Texas
    Posts
    89

    Question about Wordpress

    Hi.

    I'm looking for someone to figure out why this is happening. I want my category page to display the posts in that category. Below you can view the image of the code I have. For some reason, it is displaying all of the posts, not just posts specific to that category.

    http://img38.imageshack.us/img38/3907/codepz.jpg

    Any suggestion is appreciated.
    Tom

  2. #2
    Your code seems to redefine original post query, so WP forgets about original category and shows all posts.

    Try this instead:

    WP_Query("showposts=10&cat=$cat");

  3. #3
    Join Date
    Mar 2009
    Location
    Dallas, Texas
    Posts
    89
    You're a genius! Thank you so much.

Similar Threads

  1. PLEASE Help- Wordpress Question
    By aqaz69 in forum Web Design and Content
    Replies: 0
    Last Post: 07-23-2009, 07:17 PM
  2. Wordpress Question
    By aqaz69 in forum Web Design and Content
    Replies: 3
    Last Post: 09-10-2008, 09:07 AM
  3. Another Wordpress Question
    By aqaz69 in forum Web Design and Content
    Replies: 2
    Last Post: 07-16-2008, 03:46 AM
  4. Wordpress question- please Help!!
    By aqaz69 in forum Web Design and Content
    Replies: 4
    Last Post: 07-15-2008, 10:08 AM
  5. Wordpress question
    By aqaz69 in forum Web Design and Content
    Replies: 1
    Last Post: 06-28-2008, 09:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •