• Hi,
    I want to hide couple of articles from the Recent Posts section. Not from unregistered users, from everyone. I’ve a separate section for those so don’t want to duplicate. And I’ve a separate category for those articles too, say “Special Category” and the ID of that Category is 2. Now how can I do the following? I have:

    1. iPhone
    2. iPhone 3G
    3. iPhone GPS
    4. and so on

    Now I want to hide say iPhone & iPhone 3G (which are under “Special Category”) from the Recent Post list. How can I achieve that? I do host my own site and like million others I use WordPress.

    Please help.

    Regards.

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m wondering the same thing, and think the answer, which is for now over my head, lies in this thread: http://wordpress.org/support/topic/200645?replies=3

    I’m gonna hop into that discussion since those guys clearly know how to do what we’re looking for. Come along! : )

    (Oh wait, I just realized they’re talking about showing/hiding posts in a page, we’re both talking widget. Still, I bet they know.)

    Thread Starter techreviewau

    (@techreviewau)

    thanks mate…

    1. Please, don’t double post – I am fast with the delete button.
    2. Try to find a recent posts plugin that has category control.

    Thread Starter techreviewau

    (@techreviewau)

    You sure are fast mate. I was just trying to get attention to get it fixed ASAP, that’s all. Anyway, I’ve resolved this issue and here’s the solution if anyone else need it in future.

    instead of this:
    <?php //wp_get_archives(‘type=postbypost&limit=15’); ?>

    you’ve to do this:

      <?php $recent = new WP_Query(“showposts=15&cat=-2”); while($recent->have_posts()) : $recent->the_post();?>

    • “><?php the_title(); ?>
    • <?php endwhile; ?>

    Add “&cat=-2”..Where id # 2 is my iPhone & iPhone 3G category.

    Thanks gusy.
    [sig moderated]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Hiding Posts from “Recent Posts” Section’ is closed to new replies.