Hello
I found the following error in log file
Unknown column ‘wp_postmeta.meta_value’ in ‘field list’ pour la requ\xc3\xaate
SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.*, IF (wp_posts.post_type = 'tribe_events', wp_postmeta.meta_value, wp_posts.post_date) AS post_date FROM wp_posts WHERE 1=1 AND 0 ORDER BY wp_posts.post_date DESC LIMIT 0, 10
faite par include(‘wp-blog-header.php’), wp, WP->main, WP->query_posts, WP_Query->query, WP_Query->get_posts
The query should call wp_postmeta TABLE in FROM statement
SELECT SQL_CALC_FOUND_ROWS DISTINCT wp_posts.*, IF (wp_posts.post_type = 'tribe_events', wp_postmeta.meta_value, wp_posts.post_date) AS post_date FROM wp_posts,wp_postmeta WHERE 1=1 AND 0 ORDER BY wp_posts.post_date DESC LIMIT 0, 10
Both queries were tested and only the second one is correct.
But I don’t know if the ouput is the expected result 🙂
and thanks for your very nice and useful plugin
Jean-Michel