Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'post_type' => 'stock',
- 'posts_per_page' => 2,
- );
- $stock = new WP_Query($args);
- if( $stock->have_posts() ):?>
- <?php while ($stock->have_posts()): $stock->the_post(); ?>
- <div class="row box_barcos_opt">
- <div class="col-md-12">
- <div class="col-md-10 col-md-offset-1 col-ms-10 col-ms-offset-1 col-xs-12 box_barco">
- <div class="col-md-5 col-ms-12 col-xs-12 bg_opt" style="background: url(<?php the_field('image'); ?>)no-repeat center center / cover"></div>
- <div class="col-md-7 col-ms-12 col-xs-12 box_info_opt">
- <div class="col-md-6 col-sm-6 col-xs-6">
- <h4><?php the_field('modelo'); ?></h4>
- <table class="table_opt">
- <tr>
- <td class="info_barcos">Tipo:</td>
- <td class="resp_info"><?php the_field('tipo'); ?></td>
- </tr>
- <tr>
- <td class="info_barcos">Gama</td>
- <td class="resp_info"><?php the_field('gama'); ?></td>
- </tr>
- <tr>
- <td class="info_barcos">Marca:</td>
- <td class="resp_info"><?php the_field('marca'); ?></td>
- </tr>
- <tr>
- <td class="info_barcos">Modelo:</td>
- <td class="resp_info"><?php the_field('modelo'); ?></td>
- </tr>
- </table>
- </div>
- <div class="col-md-6 col-sm-6 col-xs-6">
- <p><span class="precio_desc"><?php the_field('precio'); ?>€</span></p>
- </div>
- </div>
- <a class="ver_barco" href="<?php echo get_permalink(); ?>">ver mas</a>
- </div>
- </div>
- </div>
- <?php endwhile; ?>
- <?php
- next_posts_link( 'Next', 10 );
- previous_posts_link( 'Previous' );
- ?>
- <?php else: ?>
- <h2 class="sin_registros">No hay barcos en stock actualmente</h2>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement