WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am not getting any headway in this one problem I have a separate homepage from the normal blog page. However the site needs a blog so How do I structure a query that will display something like the default wordpress behavior

share|improve this question
up vote 1 down vote accepted

Do the following:

  1. Create a blank page with the name "Blog" or "News" or whatever you like to call it.
  2. Go to Settings -> Reading and select A static page from Front page displays section.
  3. Choose your front-page from the Front page dropdown box, and your blog page (the page you created in step 1) from Posts page dropdown box.
  4. Save your changes.

Your blog page should now display your posts when visited.

share|improve this answer

You can create a page template for the blog and just run a custom post query -

$query_args = array(
    'post_type' => 'post'
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.