small fixes
This commit is contained in:
parent
521d306513
commit
e3e1bf23ef
@ -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
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user