| @@ 921-923 (lines=3) @@ | ||
| 918 | function geodir_filter_widget_join($join) |
|
| 919 | {
|
|
| 920 | global $wp_query, $table; |
|
| 921 | if (!empty($wp_query->query['with_pics_only'])) {
|
|
| 922 | $join .= " LEFT JOIN " . GEODIR_ATTACHMENT_TABLE . " ON ( " . GEODIR_ATTACHMENT_TABLE . ".post_id=" . $table . ".post_id AND " . GEODIR_ATTACHMENT_TABLE . ".mime_type LIKE '%image%' )"; |
|
| 923 | } |
|
| 924 | return $join; |
|
| 925 | } |
|
| 926 | ||
| @@ 2154-2156 (lines=3) @@ | ||
| 2151 | $post_type = empty($query_args['post_type']) ? 'gd_place' : $query_args['post_type']; |
|
| 2152 | $table = $plugin_prefix . $post_type . '_detail'; |
|
| 2153 | ||
| 2154 | if (!empty($query_args['with_pics_only'])) {
|
|
| 2155 | $join .= " LEFT JOIN " . GEODIR_ATTACHMENT_TABLE . " ON ( " . GEODIR_ATTACHMENT_TABLE . ".post_id=" . $table . ".post_id AND " . GEODIR_ATTACHMENT_TABLE . ".mime_type LIKE '%image%' )"; |
|
| 2156 | } |
|
| 2157 | ||
| 2158 | if (!empty($query_args['tax_query'])) {
|
|
| 2159 | $tax_queries = get_tax_sql($query_args['tax_query'], $wpdb->posts, 'ID'); |
|