WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] excluding certain categories/posts from calendar widget (3 posts)

  1. two7s_clash
    Member
    Posted 5 years ago #

    Hi-

    I'd like to filter out posts in certain categories from my calendar widget. But I'm not too keen on SQL queries, and this is how the damn thing appears to work. Surprisingly, there doesn't seem to be much out there on this topics... any help is appreciated.

    Thanks.

  2. two7s_clash
    Member
    Posted 5 years ago #

    The solution:
    in general-template.php, starting on line 1012
    add
    AND wp_term_taxonomy.term_id NOT IN (category_number)
    somewhere to the $dayswithposts function.

    'Course, do this in a plugin-in or theme function...

  3. Mindshare Studios, Inc.
    Member
    Posted 4 years ago #

    Anyone know if a good replacement for the default widget that already does this?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.