WordPress.org

Forums

use wordpress code on a non wordpress page (5 posts)

  1. noworyz
    Member
    Posted 7 years ago #

    I am trying to share / display a part of wordpress, (the page list) with a page that is not part of wordpress.

    Basically, I am wanting to use the navigation I have in wordpress in a non wordpress page (phpbb3) so that it is used site wide.

    WordPress is installed in the root of my website and in a sub folder I have a phpbb3 forum that I want to display the page list from wordpress on.

    Thanks for any help.

  2. fitztrev
    Member
    Posted 7 years ago #

    Just do a php require of wp-blog-header.php.

    Example:

    require_once('/home/fitztrev/public_html/wordpress/wp-blog-header.php');

    Then you can use any of WordPress's functions.

  3. noworyz
    Member
    Posted 7 years ago #

    what file do I put that in?

  4. fitztrev
    Member
    Posted 7 years ago #

    Whatever file you're working on... wherever you want the WordPress functions.

  5. noworyz
    Member
    Posted 7 years ago #

    ok, I will try and figure out what file to put this in for the phpBB3 header. Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic