WordPress Header/Menu on Non-Wordpress-Pages (6 posts)

  1. binolino
    Posted 5 years ago #


    beside my WordPress-Blog I have a phpBB3-Forum installed. On my blog I use the wordpress theme "Twenty Ten 1.1". I made a child theme to adjust the theme.

    To get the blog-style to my forum, I have already copied the header and footer as html from my wordpress blog to the forum. That works well, but it isn't dynamic. So if I add a page in WordPress (automatically displayed on the wordpress menu), I have to adjust the template of my forum, to add the new link in the menu of my forum template.

    To make this dynamic, I have already searched in this forum, but I only found very old topics. Nevertheless, I tried what was written there. I have to include wp-blog-header.php on my non-wordpress-page (my phpBB-Forum) and then I could get the menu via get_header().

    The following is in my phpBB template:
    <!-- PHP -->require('http://phoenixraid.de/wordpress/wp-blog-header.php'); get_header();<!-- ENDPHP -->

    but I get this error:

    Fatal error: Call to undefined function get_header() in /www/htdocs/w00c1621/phpBB3/cache/tpl_prophoenix_overall_header.html.php on line 126

    Does anyone know what I'm doing wrong? : /

    Thanks a lot for help !


    P. S. I hope anything is understandable :) If not feel free to ask!

  2. binolino
    Posted 5 years ago #

    Sadly here is no answer for me :( perhaps you know, what I'm doing wrong?


  3. Root
    Posted 5 years ago #

    Yr question is really confusing. You start out saying you want the same style applied and the next second u are loading wp functions into another application.

  4. binolino
    Posted 5 years ago #

    Ok... perhaps to clarify it.

    This is my homepage: http://www.phoenixraid.de/wordpress

    You see that is the wordpress blog and it's twenty ten-style. It has a menu and several pages. When you click on "Forum" you see my phpBB3-Forum in the same style as the wordpress blog and with nearly the same menu. But the menu in phpBB3-Forum is static not dynamic like in wordpress.

    So I have to include wp-functions to my phpBB-Template.


  5. plumwd
    Posted 5 years ago #

    It's because you need to include the file that contains the get_header() function from wordpress. It's looking for get_header() inside phpBB3 which is not what you want.

    Add this to the top of the page you're trying to include your header:


    By the way, FOR THE HORDE! ;)

  6. buick1938
    Posted 5 years ago #

    Have you fixed a problem?

Topic Closed

This topic has been closed to new replies.

About this Topic