Strange problem
-
Hi.
I am making a theme for my wordpress. The basic layot is this:if (have_posts()) { the_post(); //print the post if (have_posts()) { while (have_posts()) { the_post(); //print post if (have_posts()) { the_post(); // print post } } }
Thats basically all. what it should do is show the latest post in the top center. and then show other posts 2 per row.
The problem is that I have 4 posts for example it shows 1 on the center, 2 posts on a row, and 1 on another row. BUT then it starts showing the latest post once again. So it repeat them once.Is it some kind of problem with the loops I made?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Strange problem’ is closed to new replies.