• Nice plugin but one important thing is missing.

    This plugin should have option to exclude events from search results.

    Or Past events should be automatically change to Draft.

    Or at least we could manually change all past events to draft.

Viewing 1 replies (of 1 total)
  • Thread Starter victoo79

    (@victoo79)

    I did this by adding function

    function remove_post_type_page_from_search() {
        global $wp_post_types;
        $wp_post_types['el_events']->exclude_from_search = true;
    }
    add_action('init', 'remove_post_type_page_from_search');
Viewing 1 replies (of 1 total)
  • The topic ‘Exclude from search results’ is closed to new replies.