Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • <?php
    /*
    Template Name: Blog
    */
    ?>
    <?php get_header(); ?>

    <section id=”content” class=”sbr”>

    <div class=”container clearfix”>

    <div id=”main” class=”twelve columns”>

    <article class=”entry clearfix”>

    <?php if (have_posts()): ?>

    <?php

    while (have_posts()):

    the_post();

    ?>

    <div class=”entry-title”>

    <h2 class=”title”><?php the_title(); ?></h2>

    </div><!–/ .entry-title–>

    <div class=”preloader”>

    <?php

    $featuredImage = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );

    if ( has_post_thumbnail() ) {

    echo ‘‘;

    echo ‘<img src=”‘.$featuredImage.'” style=”width:100%;” />’;

    echo ‘‘;

    }

    ?>

    </div><!–/ .preloader–>

    <div class=”entry-body”>

    <?php the_content(‘Читать далее »’); ?>

    <div class=”author-about”>

    <div class=”author-entry”>

    <h5>Об авторе</h5>

    <div class=”author-thumb”>

    <div class=”bordered”>

    <div class=”avatar”>

    <?php echo get_avatar( $post->post_author, 80 ); ?>

    </div>

    </div><!–/ .bordered–>

    </div><!–/ .author-thumb–>

    <h6><?php the_author_meta(‘display_name’); ?></h6>

    <p><?php the_author_meta(‘description’); ?></p>

    </div><!–/ .author-entry–>

    </div><!–/ .about-author–>

    </div><!–/ .entry-body–>

    <?php endwhile; ?>

    </article><!–/ .entry–>

    <section id=”comments”>

    <?php

    if ( comments_open() || get_comments_number() ) {

    comments_template();

    }

    ?>

    </section>

    <?php endif; ?>

    <div class=”divider-half-solid”></div>

    </div><!–/ #main–>

    <?php get_sidebar(); ?>

    </div><!–/ .container–>

    </section><!–/ #content–>

    <?php

    get_footer(); ?>

    Hi, why the basic template does not reflect latest posts?

Viewing 2 replies - 1 through 2 (of 2 total)