Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter drgoplayer

    (@drgoplayer)

    Nevermind. The problem is that the zip file opens into a shortcodes-everywhere folder with a folder of the same name inside it. The inner folder needs to be uploaded.

    We can filter on either tags or categories but not on a combination of both.

    We would like to filter on both tags and categories. Is there a patch to allow that?

    This appears to be the code in class-ailec-events-helper.php, line 841, where the query is created.

    // Get the Join (filter_join) and Where (filter_where) statements based on $filter elements specified
    		$ai1ec_calendar_helper->_get_filter_sql( $filter );
    
    		$query = $wpdb->prepare(
    			"SELECT *, e.post_id, UNIX_TIMESTAMP( e.start ) as start, UNIX_TIMESTAMP( e.end ) as end, e.allday, e.recurrence_rules, e.exception_rules,
    				e.recurrence_dates, e.exception_dates, e.venue, e.country, e.address, e.city, e.province, e.postal_code,
    				e.show_map, e.contact_name, e.contact_phone, e.contact_email, e.cost, e.ical_feed_url, e.ical_source_url,
    				e.ical_organizer, e.ical_contact, e.ical_uid " .
    			"FROM $wpdb->posts " .
    				"INNER JOIN {$wpdb->prefix}ai1ec_events AS e ON e.post_id = ID " .
    				$filter['filter_join'] .
    			"WHERE post_type = '" . AI1EC_POST_TYPE . "' " .
    				"AND post_status = 'publish' " .
    				$filter['filter_where'] .
    				$start_where_sql .
    				$end_where_sql,
    			$args );

    I am guessing that the filter is built in class-ailec-calendar-helper.php but I am not sure where.

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