Support » Themes and Templates » WordPress Header/Menu on Non-WordPress-Pages

  • Hello,

    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(''); 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!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Sadly here is no answer for me 🙁 perhaps you know, what I’m doing wrong?


    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.

    Ok… perhaps to clarify it.

    This is my homepage:

    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.


    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! 😉

    Have you fixed a problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress Header/Menu on Non-WordPress-Pages’ is closed to new replies.