Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Using $wpdb to query posts with meta value containing current post_id Reply To: Using $wpdb to query posts with meta value containing current post_id

#145955
Chris
Participant

You shouldn’t be creating custom SQL queries as WordPress has built in helper classes/functions that allow you to do this much more easily.

http://codex.wordpress.org/Class_Reference/WP_Query