Posts help.
-
Hello i need some help from theme developer, i have a posts loop command here it is :
<?php if(have_posts()) : while (have_posts()) : the_post(); ?> <h2><?php the_title(); ?></h2> <p><?php the_content();?></p> <?php the_post_thumbnail(); ?> <?php endwhile; else: echo '<p>Sorry, nothing found here</p>'; endif; ?>i have sum total of 10 posts , now my front page displays 10 out of 10 posts , but i just want it to display only 5 out of 10 posts, the latest 5 that i posted, also i want to display them horizontally as well as vertically in boxes so that it just fits in the page nicely. Thanks!
-
Hi @micropixelz,
Please redirect your question to the WordPress.org Support Forums for support with theme development. I recommend starting here:
Developing with WordPress Forum
https://wordpress.org/support/forum/wp-advanced/You’ll need a WordPress.org account to post in the forums, so be sure to register for one here if you don’t have one already:
https://login.wordpress.org/registerRight now you’re in the WordPress.com Support Forums, which provides support for WordPress.com hosted sites only. The differences between between the two can often be confusing, so I also recommend reading more about that here when you get a chance:
https://en.support.wordpress.com/com-vs-org/ -
- The topic ‘Posts help.’ is closed to new replies.