In my wp_postmeta table, I have the following values:
I'm trying query the posts whose ID lie in the
meta_value column associated to a given post (the current post being viewed).
For example, lets suppose I'm viewing post
94. As illustrated above I would like to retrieve the posts
108,78,90 associated with
94 and display their titles.
In this way the an area (post type) is associated with a post by its ID being one of the meta values for the post's 'area' meta key.
I start with this:
$args = array( 'post_type' => 'area', 'posts_per_page' => -1, ); $areas = new WP_Query($args);
But how I can specify I want the posts associated with the post