greatmatter
Forum Replies Created
-
A little more in the way of updates… I started doing more code-debug, and found that when I dumped the query at line 256 of search.php:
if (is_array($meta_query)) { $meta_query_restrictions = ""; $mq_vars = array('meta_query' => $meta_query ); $mq = new WP_Meta_Query(); $mq->parse_query_vars( $mq_vars ); $meta_sql = $mq->get_sql('post', 'relevanssi', 'doc'); $meta_join = ""; $meta_where = ""; if ($meta_sql) { $meta_join = $meta_sql['join']; $meta_where = $meta_sql['where']; } // $query_restrictions .= $meta_where; }
the query had
...AND ( ( wp_postmeta.meta_key = 'vehicle_make' AND CAST(wp_postmeta.meta_value AS CHAR) = '' )
That would absolutely cause the search to show no results. Why would it be adding in the meta_key requirement here?Quick update…this only doesn’t work with one of the post types.
Ok–we’ve deactivated almost all of the plugins (we left Admin Columns Pro because we need that field) and it still didn’t work. Any other ideas?
Yes–it’s a normal field.
We’re using Pods and Admin Columns Pro, not ACF. Any thoughts?
/wp-admin/edit.php?s=5340&post_status=all&post_type=vehicles&action=-1&m=0&cpac_filter%5Bcolumn-taxonomy-2%5D&cpac_filter%5Bcolumn-taxonomy%5D&cpac_filter%5Bcolumn-taxonomy-1%5D&paged=1&action2=-1
Yes, it is. I’ve tried toggling that, as well as deactivating/reactivating the plugin.
We figured out the issue… I’m sorry to have bothered you.
To explain: We were using a shortcode to pull the post in question…and the code was pulling the post information from the master post, not the shortcode.
For some reason, it isn’t returning the post details on which its present–it’s returning the home page details, but only on the first post. The rest of the posts are returning properly. It’s as if the_title() and the_permalink() are being set improperly.