Last active
December 14, 2015 13:43
Revisions
-
diegoliv revised this gist
Dec 14, 2015 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -29,8 +29,8 @@ <?php endwhile; ?> <?php endif; ?> <?php previous_post_link( __( 'Prev' ), $disciplinas->max_num_pages ); ?> <?php next_post_link( __( 'Next' ), $disciplinas->max_num_pages ); ?> <?php wp_reset_postdata(); ?> -
diegoliv revised this gist
Dec 14, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,7 @@ <?php $paged = ( get_query_var( 'paged' ) ) ? get_query_var( 'paged' ) : 1; $disciplinas = new WP_Query( array( 'post_type' => 'disciplinas', -
diegoliv revised this gist
Dec 14, 2015 . 1 changed file with 40 additions and 31 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,31 +1,40 @@ <?php get_header(); ?> <div class="container"> <div class="row"> <?php $paged = ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1; $disciplinas = new WP_Query( array( 'post_type' => 'disciplinas', 'posts_per_page' => 3, 'paged' => $paged ) ); ?> <?php if( $disciplinas->have_posts() ) : ?> <?php while ( $disciplinas->have_posts() ) : $disciplinas->the_post(); ?> <div class="col-md-4"> <div class="panel panel-default"> <div class="panel-body"> <h3><?php the_title() ?></h3> <a href="<?php the_permalink() ?>" class="btn btn-primary"><?php _e( 'Ver Disciplina' ) ?></a> </div> </div> </div> <?php endwhile; ?> <?php endif; ?> <?php previous_posts_link( __( 'Prev' ), $disciplinas->max_num_pages ); ?> <?php next_posts_link( __( 'Next' ), $disciplinas->max_num_pages ); ?> <?php wp_reset_postdata(); ?> </div> </div> <?php get_footer(); ?> -
diegoliv revised this gist
Dec 14, 2015 . 1 changed file with 23 additions and 23 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,31 +1,31 @@ <?php $paged = ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1; $disciplinas = new WP_Query( array( 'post_type' => 'disciplinas', 'posts_per_page' => 3, 'paged' => $paged ) ); ?> <?php if( $disciplinas->have_posts() ) : ?> <?php while ( $disciplinas->have_posts() ) : $disciplinas->the_post(); ?> <div class="col-md-4"> <div class="panel panel-default"> <div class="panel-body"> <h3><?php the_title() ?></h3> <a href="<?php the_permalink() ?>" class="btn btn-primary"><?php _e( 'Ver Disciplina' ) ?></a> </div> </div> </div> <?php endwhile; ?> <?php endif; ?> <?php previous_posts_link( __( 'Prev' ), $disciplinas->max_num_pages ); ?> <?php next_posts_link( __( 'Next' ), $disciplinas->max_num_pages ); ?> <?php wp_reset_postdata(); ?> -
diegoliv created this gist
Dec 14, 2015 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,31 @@ <?php $paged = ( get_query_var( 'page' ) ) ? get_query_var( 'page' ) : 1; $disciplinas = new WP_Query( array( 'post_type' => 'disciplinas', 'posts_per_page' => 3, 'paged' => $paged ) ); ?> <?php if( $disciplinas->have_posts() ) : ?> <?php while ( $disciplinas->have_posts() ) : $disciplinas->the_post(); ?> <div class="col-md-4"> <div class="panel panel-default"> <div class="panel-body"> <h3><?php the_title() ?></h3> <a href="<?php the_permalink() ?>" class="btn btn-primary"><?php _e( 'Ver Disciplina' ) ?></a> </div> </div> </div> <?php endwhile; ?> <?php endif; ?> <?php previous_posts_link( __( 'Prev' ), $disciplinas->max_num_pages ); ?> <?php next_posts_link( __( 'Next' ), $disciplinas->max_num_pages ); ?> <?php wp_reset_postdata(); ?>