WordPress.org

Support

Support » Themes and Templates » include blog on main page

include blog on main page

  • How do you include your blog to you main page ?
    Tried looking for the include tags, but was unable to find them
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • To turn a regular php document into a WordPress one, just add this to the very top:
    <?php
    require_once('./wp-blog-header.php');
    ?>

    If your blog is in a subdirectory (i.e. /blog) to your main page, make sure it reflects that:
    <?php
    require_once('./blog/wp-blog-header.php');
    ?>

    Then you can insert any WordPress template tags you’d like.

    thank you very much for the reply
    where is a list of the WordPress template tags ?
    I am looking to show all the blog posts…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘include blog on main page’ is closed to new replies.
Skip to toolbar