Title: PageOfPosts.php Problem = Blank Page
Last modified: August 20, 2016

---

# PageOfPosts.php Problem = Blank Page

 *  Resolved [ozgression](https://wordpress.org/support/users/ozgression/)
 * (@ozgression)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/pageofpostsphp-problem-blank-page/)
 * I am using PageOfPosts.php template on this page: [http://goo.gl/UQuwK](http://goo.gl/UQuwK)
 * As you can see, it doesn’t display the posts. I have set it to show the Blog 
   category. I am using TwentyTen and Speaky themes.
 * Why isn’t it working? :-S

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/pageofpostsphp-problem-blank-page/#post-2147268)
 * what is the code of your PageOfPosts.php template?
    please paste the code into
   a [http://pastebin.com/](http://pastebin.com/) and post the link to it here.
 * nb: there is no such a thing as a universal pageofposts template – if you got
   it from [http://codex.wordpress.org/Pages#A_Page_of_Posts](http://codex.wordpress.org/Pages#A_Page_of_Posts)
   then this is only a very special, general example of how to do it.
    note the 
   use of custom fields in that example – you most likely don’t have them the exact
   same way.
 *  Thread Starter [ozgression](https://wordpress.org/support/users/ozgression/)
 * (@ozgression)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/pageofpostsphp-problem-blank-page/#post-2147419)
 * Hi,
 * Thanks for your response. Here is the code, as requested:
 * [http://pastebin.com/kmm4f9wZ](http://pastebin.com/kmm4f9wZ)
 * Any help is gratefully accepted.
 * Regards.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/pageofpostsphp-problem-blank-page/#post-2147425)
 * as i thought;
 * try: [http://pastebin.com/83YjbhWT](http://pastebin.com/83YjbhWT)
 * if the dispaly is different from your other templates, you might need to change
   a few html tags.
 * if you want to change/adapt the query, see
    [http://codex.wordpress.org/Class_Reference/WP_Query#Parameters](http://codex.wordpress.org/Class_Reference/WP_Query#Parameters)
 *  Thread Starter [ozgression](https://wordpress.org/support/users/ozgression/)
 * (@ozgression)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/pageofpostsphp-problem-blank-page/#post-2147459)
 * Hi… Firstly, thanks. The posts are displaying.
 * However, it has slightly broken the template. [http://goo.gl/UQuwK](http://goo.gl/UQuwK)
 * How do I fix it? The content area is taking up 100% of the page width. I am not
   a PHP or CSS expert.
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/pageofpostsphp-problem-blank-page/#post-2147461)
 * as i said:
 * > if the dispaly is different from your other templates, you might need to change
   > a few html tags.
 * you copied a page template, which was based on the html structure of the kubrick
   theme (default theme before wp2.9) which has a different html structure than 
   twenty ten.
    any attempts to fix this will be more trouble than they are worth.
 * it will be easier, if you use index.php of your theme as the starting point of
   the page template;
    can you paste the code of that index.php of your theme into
   a [http://pastebin.com/](http://pastebin.com/) and post the link to it here?
 *  Thread Starter [ozgression](https://wordpress.org/support/users/ozgression/)
 * (@ozgression)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/pageofpostsphp-problem-blank-page/#post-2147464)
 * Hi again,
 * Sorry, I missed the part about templates. I did not know that the wordpress example
   was based on Kubrick.
 * Ok, here is the index.php: [http://pastebin.com/8vdQZy0Q](http://pastebin.com/8vdQZy0Q)
 * But it calls the loop-index.php: [http://pastebin.com/G6nMDSSp](http://pastebin.com/G6nMDSSp)
 * can i just make the page of posts template use the loop-index.php file?
 *  [Michael](https://wordpress.org/support/users/alchymyth/)
 * (@alchymyth)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/pageofpostsphp-problem-blank-page/#post-2147465)
 * > can i just make the page of posts template use the loop-index.php file?
 * quite possible; however, there are some theme specific html tags before the loop
   which would need to be adapted as well.
 * this code:
    [http://pastebin.com/K0hSj4Ci](http://pastebin.com/K0hSj4Ci)
 * is basically:
    – index.php with the neccessary code at the top to make it a page
   template; – with the neccessary query; – with the code from loop-index.php copied
   into it, and redundant parts removed (loop-index.php has three conditional sections
   which are not needed in a page-of-posts); – `wp_reset_query()` added just in 
   case some functions in the sidebar and footer need to know which page they are
   on;
 * hopefully it works 😉
 *  Thread Starter [ozgression](https://wordpress.org/support/users/ozgression/)
 * (@ozgression)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/pageofpostsphp-problem-blank-page/#post-2147468)
 * It worked! Thank-you a lot for your help!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘PageOfPosts.php Problem = Blank Page’ is closed to new replies.

## Tags

 * [page template](https://wordpress.org/support/topic-tag/page-template/)
 * [pageofposts](https://wordpress.org/support/topic-tag/pageofposts/)

 * 8 replies
 * 2 participants
 * Last reply from: [ozgression](https://wordpress.org/support/users/ozgression/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/pageofpostsphp-problem-blank-page/#post-2147468)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
