if ( !empty( $title ) ) echo $before_title . $title . $after_title;
$cat_recent_posts = new WP_Query( array(
‘post_type’ => ‘portada’,
) );
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 ‘