Support » Plugin: Gigs Calendar » Incompatibility with Prosodia Plugin (Please update Gig Calendar)

  • Hi, I am using the Prosodia Plugin.
    https://wordpress.org/plugins/wp-vgwort/

    Together with the Gig Calendar, the plugins won’t work because of a collision of coding in gigs-calendar.php.
    Both plugins activated, the posts and pages has vanished. Deactivating brings back the content.The mistake is generate by this line
    AND ID NOT IN (SELECT postID FROM wp_gigs_gig)

    and should changed into
    AND {$wpdb->posts}.ID NOT IN (SELECT postID….

    there are 3 places to change in the gigs-calendar.php

    static function hide_posts($where) {
    $o = get_option(‘gigs-calendar’);
    if ( 0 < (int) get_option(‘gig_db_version’) && $o[‘post-filtering’] ) {
    global $wp_the_query;
    global $wp_query;
    global $wp_actions;
    /* @var wpdb $wpdb */
    global $wpdb;
    if ( in_array(‘get_sidebar’, $wp_actions) ) {
    $where .= ” AND {$wpdb->posts}.ID NOT IN (SELECT postID FROM ” . TABLE_GIGS . ‘)’;
    } elseif ( (is_single() || (function_exists(‘is_tag’) && is_tag())) ) {
    return $where;
    } elseif ( (!is_category() || $wp_the_query->query_vars[‘cat’] != $o[‘category’]) || defined(‘gigs-query-mod’)) {
    $where .= ” AND {$wpdb->posts}.ID NOT IN (SELECT postID FROM ” . TABLE_GIGS . ‘)’;
    }
    }
    return $where;
    }

    static function hide_archives($where) {
    $o = get_option(‘gigs-calendar’);
    if ( $o[‘post-filtering’] ) {
    global $wpdb;
    return $where . ” AND {$wpdb->posts}.ID NOT IN (SELECT postID FROM ” . TABLE_GIGS . ‘)’;
    }
    }

    Changing this code in the middle of the php file eliminate the mistake. Thanks for attention and please do an update for further releases.

    https://wordpress.org/plugins/gigs-calendar/

  • The topic ‘Incompatibility with Prosodia Plugin (Please update Gig Calendar)’ is closed to new replies.