Create a gist now

Instantly share code, notes, and snippets.

@Nodws /wordpress
Last active Oct 22, 2015

Get meta
$arr = Array(
'post_type'=>'post',
'posts_per_page'=>9,
'cat'=>107
);
$q= new WP_Query( $arr );
while ( $q->have_posts() ) : $q->the_post();
$meta = get_post_meta( get_the_ID() );
$tel = $meta['wpcf-telefono'][0];
the_content();
endwhile; wp_reset_postdata();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment