}

Ediciones anteriores Latam

[insert_php] $cat_recent_posts = new WP_Query( array( ‘post_type’ => ‘portada’, ‘revistas’ => ‘nutrinews-latam’,
‘order’ => ‘DESC’, ‘posts_per_page’ => -1, ) );
if ( $cat_recent_posts->have_posts() ) {

foreach ($cat_recent_posts->get_posts() as $key => $post) {
$custom_fields = get_post_custom($post->ID);
$title = $post->post_title;
$url_flip_book = get_post_meta($post->ID, «url_flip_book», true);
$imagen_de_la_portada = get_post_meta($post->ID, «imagen_de_la_portada», true);
$medium_image_url = wp_get_attachment_image_src($imagen_de_la_portada, ‘medium’ );

echo ‘

‘;
echo ‘

'. $title . '

‘.$title.’

‘;
echo ‘

‘; }

} else {
echo ‘Sin revistas actualmente en América latina’;
} wp_reset_postdata(); [/insert_php]