Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

dodo query

// WP_Query arguments
$args = array(
	'meta_query'             => array(
		'relation' => 'AND',
		array(
			'key'     => 'linkedin',
		),
	),
	'cache_results'          => true,
	'update_post_meta_cache' => true,
	'update_post_term_cache' => true,
);

// The Query
$post_query = new WP_Query( $args );

// The Loop
if ( $post_query->have_posts() ) {
	while ( $post_query->have_posts() ) {
		$post_query->the_post();
		// do something
	}
} else {
	// no posts found
}

// Restore original Post Data
wp_reset_postdata();