/
home
/
w
/
q
/
g
/
wqgepnx
/
www
/
wp-content
/
themes
/
prixexport
/
loop-templates
/
File Upload :
llllll
Current File: /home/w/q/g/wqgepnx/www/wp-content/themes/prixexport/loop-templates/content-sidebar.php
<div class="col-md-12 animation"> <p class="category-sidebar">Animation</p> <?php $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 3, 'category_name' => 'animation', 'orderby' => 'title', 'order' => 'ASC', ); $anim = new WP_Query( $args ); while ( $anim->have_posts() ) : $anim->the_post(); ?> <p class="title-sidebar"><a href="<?php the_permalink(); ?>"><?php the_title(); ?> - <?php the_field("distributor"); ?></a></p> <?php endwhile; // end of the loop. wp_reset_postdata($anim); ?> </div> <div class="col-md-12 documentary"> <p class="category-sidebar">Documentary</p> <?php $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 3, 'category_name' => 'documentary', 'orderby' => 'title', 'order' => 'ASC' ); $doc = new WP_Query( $args ); while ( $doc->have_posts() ) : $doc->the_post(); ?> <p class="title-sidebar"><a href="<?php the_permalink(); ?>"><?php the_title(); ?> - <?php the_field("distributor"); ?></a></p> <?php endwhile; // end of the loop. wp_reset_postdata($doc); ?> </div> <div class="col-md-12 fiction"> <p class="category-sidebar">Fiction</p> <?php $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'posts_per_page' => 3, 'category_name' => 'fiction', 'orderby' => 'title', 'order' => 'ASC' ); $fiction = new WP_Query( $args ); while ( $fiction->have_posts() ) : $fiction->the_post(); ?> <p class="title-sidebar"><a href="<?php the_permalink(); ?>"><?php the_title(); ?> - <?php the_field("distributor"); ?></a></p> <?php endwhile; // end of the loop. wp_reset_postdata($fiction); ?> </div>
Copyright ©2k19 -
Hexid
|
Tex7ure