How to fetch posts that are stored in the different table than (default) wp_posts?
Don’t hack the Core. There are filters in WP_Query that should more than suffice to include your table, if your SQL and regex are good enough. posts_distinct – Alters SQL ‘DISTINCTROW’ clause to the query that returns the post array. posts_groupby – Alters SQL ‘GROUP BY’ clause of the query that returns the post array. … Read more