Blog posts listing
-
I want to list the blog posts as they are in the index.php page. I copy/pasted the code below but the page shows only that content which is written in the Pages/Blog [name of the page] i.e. it does not correspond with the code I put in the .php file.
Can someone help me? Thank you!
<?php while(have_posts()) : the_post(); ?> <?php if ( has_post_thumbnail() ) : ?> <a href="<?php the_permalink('http://viso.lv/wordpress/?p=76'); ?>"><?php the_post_thumbnail(); ?></a> <?php endif; ?> <h3><a href="<?php the_permalink('http://viso.lv/wordpress/?p=76'); ?>"><?php the_title(); ?></a></h3> <p><?php the_excerpt(); ?></p> <p class="text-muted" style="margin-bottom: 20px; border-bottom: 1px solid #e7e7e7">Опубликовано <?php the_author(); ?> на <?php the_time('F jS, Y'); ?></p> <?php endwhile; wp_reset_query(); ?>
The topic ‘Blog posts listing’ is closed to new replies.