Custom MySQL and Related Tables Question
-
We need to sort a query based on a custom taxonomy. The problem is that we can’t just sort on the field alone, because it has multiple values associated with it. We were thinking of using PHP to pull the query, isolate the value from the custom taxonomy that we need, put that value as well as the other data we pulled into an array, sort the array, and return back the now sorted data. We are now thinking the more effective way is to actually use a related database table, since that is how the data should be in the first place. Is this possible? If so, how do you use two tables in a WP query?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Custom MySQL and Related Tables Question’ is closed to new replies.