JOIN Two Tables in WordPress
read more
Categories

JOIN Two Tables in WordPress


In a previous posts, I’ve talked about how to:

View the last query that WordPress executed
Select DISTINCT records in WordPress

There’s a lot more to do than just viewing the last query and selecting distinct rows, though. For example, you can also JOIN two tables in WordPress without having to write raw SQL.
So to be consistent with some of the previous posts, I thought I’d share how to do this using the WordPress API.