small fixes

This commit is contained in:
Vasil Kolev 2014-10-12 13:00:46 +03:00 committed by Openfest
parent 521d306513
commit e3e1bf23ef
1 changed files with 7 additions and 3 deletions

View File

@ -1,11 +1,15 @@
<?php <?php
/*
* Template Name: Speakers
*/
get_header(); ?> get_header(); ?>
<div class="separator"></div> <div class="separator"></div>
<section class="content grid"> <section class="content grid">
<div class="col-left"> <div class="col-left">
<h1 class="big">Лектори</h1> <h1 class="big">Лектори</h1>
<?php <?php
$speakers_args = array( 'post_type' => 'speakers' ); $speakers_args = array( 'post_type' => 'speakers', 'nopaging' => 'true', 'order' => 'ASC' );
$speakers = new WP_Query( $speakers_args ); $speakers = new WP_Query( $speakers_args );
if ( $speakers->have_posts() ) : if ( $speakers->have_posts() ) :
@ -14,10 +18,10 @@ get_header(); ?>
<div class="speaker"> <div class="speaker">
<?php <?php
if ( has_post_thumbnail() ) { if ( has_post_thumbnail() ) {
the_post_thumbnail(); the_post_thumbnail(array(100, 100));
} else { } else {
?> ?>
<img src="img/speakers.jpg"> <img src="/img/speaker.jpg">
<?php <?php
} }
?> ?>