Instagram Embedder User Data
// WP_Query arguments
$args = array(
'post_type' => array( 'post' ),
'meta_query' => array(
array(
'key' => 'instagram_business_id',
'value' => 'mumeric',
'compare' => '=',
),
),
);
// The Query
$current_user_post_data = new WP_Query( $args );
// The Loop
if ( $current_user_post_data->have_posts() ) {
while ( $current_user_post_data->have_posts() ) {
$current_user_post_data->the_post();
// do something
}
} else {
// no posts found
}
// Restore original Post Data
wp_reset_postdata();