cesardpaz
1/4/2020 - 11:19 PM

wp-loop-metaquery

wordpres loop with meta_query

<?php $args = array(
    'post_type'           => 'aria_episode',
    'posts_per_page'      => get_option( 'posts_per_page' ),
    'post_status'         => 'publish',
    'no_found_rows'       => true,
    'ignore_sticky_posts' => true,
    'meta_query' => array( 
       'relation' => 'AND', 
        array( 
            'key'     => 'Fabricante', 
            'value'   => 'Disney', 
            'compare' => '=', 
        ), 
    ),
); 
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) :
    while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
        <!-- Contenido -->
    <?php endwhile;
endif; wp_reset_query(); ?>