WordPress.org

Ready to get started?Download WordPress

Forums

include blog on main page (3 posts)

  1. Anonymous
    Unregistered
    Posted 9 years ago #

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

  2. Kafkaesqui

    Posted 9 years ago #

    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.

  3. Anonymous
    Unregistered
    Posted 9 years ago #

    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...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.