Support » Plugin: Taxonomy Term Widget » exclude expired events from count

  • Resolved WKAM


    Hi there,

    i’m using this for my events and it’s working great.
    however, when it shows the post count, is there a way to count events with the event day from present to future.
    so when there’s 5 events and 2 of them occured in jan 2015, and the rest in dec 2015, it would show a post count of 3, not 5. Possible?

    also, i like to display a ‘show all’. Anyway to do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author codersantosh


    Sorry but It is not possible by using this plugin.

    It just let you choose any taxonomy(category, tags etc ) you have in your site to show them like in ‘Categories widget’ with more advanced options.

    From your requirements I can suggest you to use combination of get_terms and WP_Query with some logic.

    To obtain what you exactly want, you must know some knowledge about WordPress programming.


    sounds like I would have to update your plugin, right?
    if so, which files should i look at?
    appreciate any leads.


    Plugin Author codersantosh


    If you knew about creating custom widget , it will be easy for you. All you need to do it to customize widget function in the plugin main file taxonomy-term-widget.php from the line number 218.

    This plugin used wp_dropdown_categories and wp_list_categories functions.
    You have to change them to meet your requirements (probably using get_terms and WP_Query ). However I already said it will be little bit tricky and you should have good knowledge of WordPress functions

    Note : Directly customizing plugin itself is not good idea, you can create a brand new plugin from this to meet your requirements.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘exclude expired events from count’ is closed to new replies.