WordPress.org

Ready to get started?Download WordPress

Forums

WP Meetup
[resolved] Killed my menus (3 posts)

  1. SuburbanForagers
    Member
    Posted 1 year ago #

    I'm using an elegant theme and as soon as I applied the shortcode to my calendar page, the calendar page displayed and worked great, but for whatever reason I could no longer view my menus.

    http://wordpress.org/extend/plugins/wp-meetup/

  2. SuburbanForagers
    Member
    Posted 1 year ago #

    Never mind, I needed to uncheck "Include event posts on home page" under Publishing Options and it fixed it.

  3. rfair404
    Member
    Posted 1 year ago #

    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;
        }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.