• I was wondering if there was a way to utilize WordPress 2.7 so that every post you make to a specific category gets stickied by default? Say I have a category called Announcements. My announcements are updated on a regular basis, and what I’d like to see happen is when I post a new announcement, it would automatically cause my previous announcement to get unstickied while the new one gets stickied. This could be done manually of course, but an automated process would be wonderful.

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    On your front page?

    You could make a page template with two loops. The first one would be like this:

    <?php query_posts('cat=##&showposts=1'); ?>
    <?php while (have_posts()) : the_post(); ?>
    (all your post stuff)
    <?php endwhile; ?>

    Where ## is the cat number for your Announcement category.

    And then your regular one below. Though it would duplicate that first post at times… I suppose then you could use a second query_posts to exclude the announcement category, toss a link between the loops ‘See previous announcements here’ and link that to the category…

Viewing 1 replies (of 1 total)
  • The topic ‘Setting one category to always sticky posts by default.’ is closed to new replies.