• Resolved webmystery

    (@webmystery)


    I’m trying to display a list of categories that only displays categories that have scheduled events.
    I’m using this shortcode: [categories_list scope=future hide_empty=1]
    on this this page — http://artvallejo.org/category-list/

    It displays all categories that have published events, both past and future. There are no Grand Openings scheduled, so I don’t want that category to display in the list. The only way I can make it go away is to go back and unpublish or delete the past Grand Opening events.
    I don’t think the category list pays any attention to scope. This is a huge volunteer project and I don’t have time to monitor the events in that way.

    Suggestions?

    https://wordpress.org/plugins/events-manager/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    try this shortcode instead -> [categories_list scope=”future” hide_empty=1]

    Thread Starter webmystery

    (@webmystery)

    Thanks – makes sense… strings in quotes, but
    [categories_list scope=”future” hide_empty=1]
    still shows me categories with past but no future events.

    Taking a look at http://artvallejo.org/category-list/ the categories are only displaying future events. Is this still not how you want it? Maybe you were seeing a cached version before…

    Thread Starter webmystery

    (@webmystery)

    Thanks caimin_nwl

    Yes, the categories are only displaying future events, that is not my complaint. I cleared my cache. The category list is showing links to categories that have NO future events scheduled.

    If you click the “Grand Opening” link in this page you’ll see what I mean http://artvallejo.org/category-list/

    I am able to generate a list of locations where only locations with future scheduled events are displayed. I would like to be able to do the same thing with Categories.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    hmm, this works for me using my test sites; can I know what is your current EM version ?

    Thread Starter webmystery

    (@webmystery)

    Events Manager 5.5.2 and WordPress 3.8.1
    For the heck of it I briefly swapped my theme over to Twenty Fourteen. Same thing.
    If the category is truly empty with no past events it won’t show up in this list, but if it contains a past event it will.

    Are you using a custom category template by any chance?

    Thread Starter webmystery

    (@webmystery)

    nope. vanilla.

    Hi!

    Following up an old thread. 🙂

    Were you able to solve this? I have exactly the same problem. Using the shortcode
    [categories_list scope=”future” hide_empty=1]
    a list with all categories that have events is shown, even if those events only are in the past. Only categories without any published events are hidden. Categories with events in the past, but not in the future, are displaying the standard text for missing events instead of the corresponding events.

    Any help is really appreciated.

    Kind regards
    Andreas

    Edit: Using WP4.1 with EM5.5.5 and EMpro 2.3.9

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Category list hide_empty displays category with no future events’ is closed to new replies.