admin管理员组

文章数量:1323035

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 queryAny way to use FETCHKEYPAIR with wpdb