Title: using &quot;/?p=0&quot;
Last modified: August 21, 2016

---

# using "/?p=0"

 *  [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/using-p0/)
 * Looked for information on site.com/**?p=0** (which seems to output latest blog
   posts). Where is this documented and is this not an easy way to create a blog
   page?

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

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/using-p0/#post-4389269)
 * > /?p=0 (which seems to output latest blog posts
 * I think /?p=0 is probably an invalid value. You can most likely demonstrate the
   same results (returning the default) by passing any other unrecognized value 
   you like. Ex: site.com/?p=cheeseandcrackers = default blog page.
 * >  is this not an easy way to create a blog page?
 * What exactly are you asking? You mean programmatically?
 *  Thread Starter [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/using-p0/#post-4389287)
 * I mean visit any of these:
 * //http://seacoastwebservice.com/?p=0
    //http://seacoastwebservice.com/blog (pages
   are identical, blog is at /blog)
 * //http://swansonphotosonline.com/?p=0
    //http://swansonphotosonline.com/ (pages
   are identical, front page is blog page)
 * //http://chadmlorion.com/?p=0
    (This site has no set blog page, yet ‘/?p=0’ takes
   you a blog page)
 * And perhaps yes to programmatically. I was actually reviewing [this post](http://wordpress.org/support/topic/url_to_postid-does-not-work-on-homepage?replies=2),
   and thought WP would be trying to find /?p=0, so I checked a few sites (guess
   I never thought of this question before) and low and behold… /?p=0 takes us to
   a blog page.
 * The themes are not the same on all sites. Three different blog page scenarios…
 * If above is true, what page template is WP trying to use…archive.php? And, if
   so, why do I not just write a simple rewrite or redirect rule for /blog to /?
   p=0 ??
 * What happens at your sites?
 *  Thread Starter [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/using-p0/#post-4389294)
 * And, it seems that WPPageNavi is at default settings when /?p=0 is used at first
   set of links…second or third set integrate WPPageNavi. So then it is not using
   a theme template??
 * And, I guess the first set of links are not identical as with /?p=0 ignores the
   excerpts and is displaying full posts, while /blog is doing what I told it to…
 * Just curious about anything in WP Core (or maybe in all these themes) that makes/?
   p=0 output a page of posts…
 *  Thread Starter [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/using-p0/#post-4389295)
 * And last (for now,) it does seem that /?p=cheeseandcrackers has same effect as
   does /?p=0000..so, is there an easier way to add a blog page to a theme that 
   does not have one except when set at front page (like twentyeleven)??? When this
   query is ‘invalid’…what piece of code says, well then do ‘this’???
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/using-p0/#post-4389302)
 * After reading all of that, I still don’t quite understand what you actually want
   to accomplish.
 * > is there an easier way to add a blog page to a theme that does not have one
   > except when set at front page (like twentyeleven)???
 * Easier than allowing the user to make that choice from the settings in the dashboard,
   you mean?
 * Maybe take a look at some of the information on [first_post_guid ](http://wordpress.org/search/first_post_guid)
   and returning values using the [get_option ](http://codex.wordpress.org/Function_Reference/get_option),
   function – think get_option(‘home’) – ie.. where the value = ‘/?p=X’ (or whatever)
 * >  When this query is ‘invalid’…what piece of code says, well then do ‘this’???
 * Wouldn’t that just be consistent with the expected behavior when passing an undefined
   variable?
 * ..I don’t know. I don’t have the answer to your question. Maybe one of the PHP
   gurus will see this and break it down into something helpful for you.
 * Good luck with your research!
 *  Thread Starter [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/using-p0/#post-4389303)
 * I understand the confusion, so am I. Why does WP not just return a 404 etc. It
   does not. It creates a blog post page.
 * Like this does:
 * [http://seacoastwebservice.com/p=23569](http://seacoastwebservice.com/p=23569)
 *  Thread Starter [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * (@swansonphotos)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/using-p0/#post-4389311)
 * ? in there has same result…

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

The topic ‘using "/?p=0"’ is closed to new replies.

## Tags

 * [id](https://wordpress.org/support/topic-tag/id/)
 * [post](https://wordpress.org/support/topic-tag/post/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [Pioneer Web Design](https://wordpress.org/support/users/swansonphotos/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/using-p0/#post-4389311)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
