WordPress.org

Support

Support » Plugins and Hacks » [Resolved] excluding certain categories/posts from calendar widget

[Resolved] excluding certain categories/posts from calendar widget

  • 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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…

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] excluding certain categories/posts from calendar widget’ is closed to new replies.