Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php if ( is_home() ) : ?>
- <?php
- $feed_alfa = new WP_Query( 'posts_per_page=1');
- while ( $feed_alfa->have_posts() ) { $feed_alfa->the_post(); } ?>
- <!-- top articles -->
- <div class="top-articles">
- <div class="item">
- <div class="item-cover"><?php the_post_thumbnail( 'cover-single' ); ?></div>
- <div class="item-group">
- <div class="item-category"><span><?php echo single_topic(); ?></span>
- </div>
- <div class="item-headline"><a href="<?php echo get_permalink(); ?>"><?php the_title(); ?></a></div>
- </div>
- <div class="item-meta">
- <div class="item-date">
- <time datetime="<?php the_time('Y-m-d H:i:s'); ?>" itemprop="datePublished">
- <?php the_time('F d, Y'); ?>
- </time>
- </div>
- <div class="item-author">от <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"><?php the_author(); ?></a></div>
- </div>
- </div>
- </div>
- <!-- top articles -->
- <?php wp_reset_postdata(); ?>
- <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement