Support » Plugin: WP Meetup » [Plugin: WP Meetup] Killed my menus

Viewing 2 replies - 1 through 2 (of 2 total)
  • Never mind, I needed to uncheck “Include event posts on home page” under Publishing Options and it fixed it.

    This is an issue with the plugin and how it modifies the query to include events.

    The “modify_pre_posts” function needs to be re-written, correctly as I have done below:
    currently:

    function modify_pre_posts( $query ) {
    	$this->import_model('options');
    	if ($this->options->get('include_home_page')) {
    	    if ( is_front_page() || is_home())
    		$query->set('post_type', array('wp_meetup_event', 'post'));
    	}
    	return $query;
        }

    corrected:

    function modify_pre_posts( $query ) {
    	$this->import_model('options');
    	if ($this->options->get('include_home_page') && is_main_query()) {
    	    if ( is_front_page() || is_home())
    		$query->set('post_type', array('wp_meetup_event', 'post'));
    	}
    	return $query;
        }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP Meetup] Killed my menus’ is closed to new replies.