I'm trying to get key/value pair results from a query like PDO's FETCH_KEY_PAIR from a $wpdb query. The closest I found was the OBJECT_K output from get_results(). But that returns the key, but for the value it returns an array of values instead. How do I get it to return the proper key/value pair?
wp query - Any way to use FETCH_KEY_PAIR with $wpdb?
评论列表(0)
- 暂无评论