Does your theme’s index.php template file use a custom query?
Hi, here’s the code I have…
[Code moderated as per the Forum Rules. Please use the pastebin]
Hi esmi, I pasted the code here… http://pastebin.com/9pGyntKa
Yes – it does, Try changing <?php query_posts("posts_per_page=5"); ?> to:
global $query_string;
query_posts( $query_string . "&posts_per_page=5" );
http://codex.wordpress.org/Function_Reference/query_posts#Usage_Note
That worked! Thank you so much esmi…I love you : ) As a newbie with WordPress I couldn’t figure out why this was happening.
Thank you again,
David
Hi esmi, now for some reason when I click through my main navigation (i.e, about, contact, etc.) and then go back to my Home page the posts are gone. As you can see in the code in the pastebin I’ve indicated the home page as the template page. Here’s what I have… http://pastebin.com/nUeyxZ7h
Thank you,
David
What’s your home page’s template file called?
Hi esmi, I just named it home. I’m not sure I’m doing this right because if the index.php is the default home page then I wouldn’t need a new home template file then, or would I? Unless I was creating a static page for my home page, which it isn’t.
I fixed it but I’m not sure if it’s the right way though : ) what I did was go to appearance -> menus -> custom links, then just entered my localhost as my url and labeled it “home”. Then added it to my Main nav menu.