I need to make a query in a WordPress plugin but I couldn’t find a WordPress function and I’m not sure is right to use mysql_query
The functions I’ve found enable ordering and grouping but I need to use also join and in (list).
Is there a way?
I need to make a query in a WordPress plugin but I couldn’t find a WordPress function and I’m not sure is right to use mysql_query
The functions I’ve found enable ordering and grouping but I need to use also join and in (list).
Is there a way?
You must be logged in to post a comment.
It looks like you’d want to use the
$wpdb
class (which has functions for directly accessing and manipulating the wordpress database). It lets you do things like:Documentation here.
To pull out rows maybe you’d use: