Viewing 9 replies - 1 through 9 (of 9 total)
  • hi,

    you can use shortcodes like [events_list category=x] where x is the events category id at Events > Events Category (if it’s not visible you can try to click Screen Options then tick Category ID and apply)

    https://wp-events-plugin.com/documentation/shortcodes/

    Thread Starter westcool

    (@westcool)

    This was helpful and will work on separate pages to list by category

    [events_list category=4713]
    #_EVENTLINK will take place at #_LOCATIONLINK on #_EVENTDATES at #_EVENTTIMES[/events_list]

    but if I want to have the search by location function that is part of the default setup but only show by category, is that possible?

    yes, you can edit template file at p-content/plugins/events-manager/templates/templates/events-list.php then add $args['category'] = '4713';

    Thread Starter westcool

    (@westcool)

    Can I subtract a category from showing up on the Events page?

    yes, you can try something like $args['category'] = '-4713'; *this will exclude all the events that uses this category

    Thread Starter westcool

    (@westcool)

    Hmmm, I’m a little slow. What I want to happen is to have two separate pages which each show only a category. I want a “search by location” on each which will only search the category and I want the Events Calendar to only show one category. I’m not a programmer, just HTML so I’m not sure where the PHP code goes. Where would this go? $args[‘category’] = ‘-4713’; Can it apply to the Event Calendar?
    How do I add a location search? Can it go on the page itself or does it have to go in the PHP files?

    Thank you for your help

    hmmm, in that case you can use shortcode like [events_list category=”1,2,3″ location=”1″] or [events_list category=”-4,-5″ location=”2″] and for calendar [events_calendar full=1 long_events=1 category=64]

    https://wp-events-plugin.com/documentation/event-search-attributes/
    https://wp-events-plugin.com/documentation/shortcodes/

    Thread Starter westcool

    (@westcool)

    OK, got the calendar working just fine, THANK YOU! but I want a “search by town limited to category” Not just a list of events by town. I read the attributes page but still don’t know how to put it together to get what I want.
    Needs to be in a format like

    <form class=”em-events-search-form” method=”post” action=”concerts/”>
    <select class=”em-events-search-town” name=”town”>
    <input type=”hidden” value=”search_events” name=”action”>
    <input class=”em-events-search-submit” type=”submit” value=”Search”>
    </form>
    Somewhere in there it needs to list the towns and category=4713 but I don’t even know if it is possible.

    try something like [events_list category=”1,2,3″ country=”US” town=”New York”]

    https://wp-events-plugin.com/documentation/event-search-attributes/

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Two Pages?’ is closed to new replies.