To use WordPress functions, you’ll need to include the wp-blog-header.php in your forum template.
There after, you would be able call the get_header(), get_footer and other relevant functions which you need.
How would i include the wp-blog-header.php file in my template?
<?php
// Include WordPress
define(‘WP_USE_THEMES’, false);
require(‘./blog/wp-blog-header.php’);
?>
something like that? (probably need some adjusting, its how I call it for use on my website, where I DON’T want to use the theme….
What file should i include this code in? I’m using MyBB …
no clue on that one boss…I use SMF for my forums…..never seen MyBB
I’m totally lost. I’ve no idea how i can do this … lol
No idea on that too mate… I don’t know how the template engine of that forum works…
However, if I were to guess, you could can try linking the wp-blog-header.php in the template index file..
According to SMF forum:
index this is the stuff around the main content that goes on every page.
Note: If you do try it out… pls DO NOT try it on a live site….
geraldyeo,
I have wordpress and smf. What exactly do I need to do to get the header above the smf forum? I have looked and tried everything?! i would appreciate any help 😀