Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section>
- <div class="gap">
- <div class="container">
- <div class="remove-ext3">
- <div class="row">
- <?php $custom_query_args = array( 'posts_per_page' => 6, 'paged' => $paged );
- $custom_query_args['paged'] = get_query_var( 'paged' ) ? get_query_var( 'paged' ) : 1;
- $custom_query = new WP_Query( $custom_query_args );
- $temp_query = $wp_query;
- $wp_query = NULL;
- $wp_query = $custom_query;
- if ( $custom_query->have_posts() ) :
- while ( $custom_query->have_posts() ) :
- $custom_query->the_post(); ?>
- <div class="col-md-4 col-sm-6">
- <div class="article-box">
- <div class="article-thmb-new">
- <a href="<?php the_permalink()?>" itemprop="url">
- <?php if( get_post_meta($post->ID, 'prod_imagem', $post_id) ); ?>
- <img src="<?php the_field('prod_imagem', $post_id ); ?>" alt="" itemprop="image" />
- </a>
- </div>
- <div class="middle">
- <p>clique na foto para mais detalhes</p>
- </div>
- <div class="cat-info">
- <ul class="article-meta" style="margin-bottom: 10px;">
- <li style="font-size:18px;">CÓDIGO:
- <span style="color:#b59d5a;">
- <?php if( get_post_meta($post->ID, 'prod_codigo', $post_id) ); ?>
- <?php the_field('prod_codigo', $post_id ); ?>
- </span>
- </li>
- </ul>
- <h5 itemprop="headline"><?php the_title(); ?></h5>
- <?php if ( is_user_logged_in() ) : ?>
- <ul class="article-meta">
- <li style="font-size:18px;">VALOR:
- <span style="color:#b59d5a;">
- <?php if( get_post_meta($post->ID, 'prod_valor', $post_id) ); ?>
- <?php the_field('prod_valor', $post_id ); ?>
- </span>
- </li>
- </ul>
- <?php endif; ?>
- </div>
- </div>
- </div>
- <?php endwhile; ?>
- <?php endif;
- wp_reset_postdata();
- sdcom_numeric_posts_nav();
- $wp_query = NULL;
- $wp_query = $temp_query;?>
- </div>
- </div>
- </div>
- </div>
- </section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement