Events Manager
[resolved] Hide events based on tag (6 posts)

  1. nyladenise
    Posted 3 years ago #

    How would I go about customizing the default Events page to show all events except those with certain tags?

    I've been all through the settings and help section, and I thought I needed to do something with conditional placeholders, but I can't quite figure it out. Is anybody able to steer me in the right direction?


  2. agelonwl
    Posted 3 years ago #

    you can try to use event categories instead e.g. using shortcode [events_list category="-1,-2,-3"] where x is the event category id


  3. nyladenise
    Posted 3 years ago #

    Thank you! I did see that, but I'm unsure how to actually implement it for the default Events page. I tried putting in on the page itself but, as expected, it is overridden by what is in the Events Settings page. So I tried to put it in the Events Settings > Formatting — I put [events_list category="-1"] above the content in the header, and [/events_list] below the footer content — but that didn't work. I feel like there's a really simple solution, I'm just not wrapping my head around it for some reason. What am I missing?

    It works if I am putting it in a new page I manually create, but is that the only way I can do it? If so, I guess I can work around that, but I'm trying to avoid changing my existing link structure -- I just want to edit the standard Events page.

  4. agelonwl
    Posted 3 years ago #

    you need to paste this shortcode [events_list category="-1"] in your wp page or post.

    e.g. in your wp page you can do something like this

    [events_list category="-1"]
  5. nyladenise
    Posted 3 years ago #

    Thanks. Yes I know I can do that on any other page or post. What I'm trying to do is have that on the default Events page — the page that I have selected from Events Settings > Pages > Event List/Archive as the page to display my Events.

    What you said works fine if I select "No Events Page" from that list, then I can control what I put on my page and I can use the shortcodes easily. The problem is, the search form doesn't work unless you do have the page selected in Events Settings > Pages > Event List/Archive. So I wanted a way to keep the search form functionality as well as control the output of my events.

  6. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 3 years ago #

    You could get this working by overriding our templates and adding the same sort of thing to the $args variable e.g.

    $args['category'] = '-1';

    the file you want is templates/templates/events-list.php


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic