Support » Fixing WordPress » query posts – categories show all posts from the blog

  • Hello everybody,

    I’m a little bit confused, cause I can’t find the solution for my problem.

    here’s the code from my index.php file:

    http://pastebin.com/51zawzjM

    as you can see, there’s 2 loops, first shows only the recent post, and second shows the other.

    And here’s my problem: I want to show posts in categories but when I’m clicking on any of them, there are all of the posts. I can’t filter it. Probably, I need something in line number 43. What do you think?

    If you need some more info, just tell me.

    thx for response.

Viewing 1 replies (of 1 total)
  • Additional info:

    when I’m deleting the second loop:

    $q = new WP_Query(array(
    ‘post__not_in’ => $ids,
    ‘paged’ => get_query_var(‘paged’),
    )

    everything’s work. But I need to exclude the recent post…

Viewing 1 replies (of 1 total)
  • The topic ‘query posts – categories show all posts from the blog’ is closed to new replies.