Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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.