Created
October 24, 2017 01:00
-
-
Save kirasiris/61099b729d2fa2a0a863b6ff0004b72b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="col-md-12" id="col-md-12-videospage"> | |
<?php | |
$portfolio_query = new WP_Query(array( | |
'category_name' => 'portfolio', | |
'order' => 'DESC', | |
'posts_per_page' => '9', | |
'paged' => $paged | |
)) | |
?> | |
<!-- First Blog Post --> | |
<?php if($portfolio_query->have_posts()) : while ($portfolio_query->have_posts()) : $portfolio_query->the_post(); ?> | |
<div class="col-md-4" id="col-md-12-videospage"> | |
<article> | |
<?php if(has_post_thumbnail()) : ?> | |
<a href="<?php the_permalink(); ?>" class="thumbnail"> | |
<?php the_post_thumbnail(); ?> | |
</a><?php endif; ?> | |
<a href="<?php the_permalink(); ?>"><h4 id="h4enpagevideosandpageportfolio"><?php the_title();?></h4></a> | |
</article> | |
</div> | |
<?php endwhile; ?> | |
<?php else : ?> | |
<div class="alert alert-danger text-center"><p>Ningun video encontrado</p></div> | |
<?php endif; ?> | |
</div> | |
</div> | |
<!-- Pager --> | |
<div class="clearfix"></div> | |
<ul class="pager"> | |
<li><?php next_posts_link( 'Older', $portfolio_query->max_num_pages); ?></li> | |
<li><?php previous_posts_link( 'Newer'); ?></li> | |
</ul> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment