Posts are duplicated in two different styles
-
Hello,
I have an indexpage displaying 22 blog posts – each marked with a number and a background color.When clicking to “see more posts”, I want my index2 or page2 to look almost the same as the front page with the only difference of not using a background color like on the frontpage.
When using the code below I have defined the second page by writing
<?php if ( $paged < 2) {
– Meaning this is where I mark that the “read more posts” is clicked and the user will see another 22 posts that will look a little different when on the first indexpage.BUT the posts are duplicated on the frontpage displaying it the right way on the left side of the page and duplicating the posts in style of page 2 on the right side of the page.
I have uploaded a picture so you can see what I mean
Any idea how to avoid the duplication of the posts?
Here is the code:
[moderated: chunk of code removed, see forum rules. please use a pastebin]
- The topic ‘Posts are duplicated in two different styles’ is closed to new replies.