• Resolved jflywheel

    (@jflywheel)


    I’m trying to figure out how to exclude categories in plugins/events-manager/templates/tables/events.php.

    I’ve copied the file to my themes folder and have been able to make some changes to it. Can’t seem to exclude categories though. Any help would be appreciated.

    Thank you!

    https://ww.wp.xz.cn/plugins/events-manager/

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

    (@angelo_nwl)

    hi,

    can I know what is your EM theme template path? also, what do you mean by exclude categories ?

    Thread Starter jflywheel

    (@jflywheel)

    Hi,

    I copied the file from:

    /wp-content/plugins/events-manager/templates/tables/events.php

    to:

    /wp-content/themes/my-theme/plugins/events-manager/tables/events.php

    I am able to edit it without a problem and the changes show up on the front-end.

    I have a page on the front-end for users to go to and edit events they have submitted. The page lists all the events the user has submitted regardless of what category the event is in. I would like only events from certain categories to show up on the page.

    I tried:

    $EM_Events = EM_Events::get(array(‘category’=>’CAT_ID’));

    with CAT_ID being the ID of the category I want to show. But if I do this I can only view upcoming events, not past events or Drafts.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    try to add 'scope' => 'all'

    Thread Starter jflywheel

    (@jflywheel)

    Thank you for the suggestion. I can now see past events and Drafts. The Search Events box no longer works or the links above it (Upcoming, Drafts, Upcoming Events) but that is OK. I can remove those.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Exclude categories in templates/tables/events.php’ is closed to new replies.