benwilliamson
Member
Posted 4 months ago #
I am having trouble displaying posts on a second page in the 2011 theme.
I copied the index.php code exactly and created a new template with it.
I then created a new blank page and pointed it to the above template but the posts will not display. Im not sure what else i need to do. Any help would be greatly apreciated.
A fresh download of the 2011 theme and re-installation/upload the new 2011 theme may work on this matter.
benwilliamson
Member
Posted 4 months ago #
I removed and reinstalled the theme but still no good. This is the code i have used for the template:
[code moderated - please use the pastebin]
I must be doing something wrong~? The message 'Sorry, no posts matched your criteria' is not displayed which means it knows theres posts but i cant get them to show up?
a:
make sure to work with a child theme of Twenty Eleven http://codex.wordpress.org/Child_Themes;
don't edit the default theme Twenty Eleven directly.
you might need to add a query before the post to tell the template what to display;
example:
<?php query_posts('cat=0&paged='.get_query_var('paged')); ?>
http://codex.wordpress.org/Function_Reference/query_posts