MyBB Community Forums

Full Version: Adding Blogs Category Navigation to header?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
OK the main part of my site is using Wordpress and I have themed the forums to look like it and installed to the /forums folder.

At the top of the Wordpress site is a category navigation menu, is it possible to add it to the mybb header so that when I make changes to the categories in wordpress it updates on the forums?

The code wordpress uses to display the menu is...

<?php wp_list_categories('title_li=&depth=4&orderby=name'); ?>

......which does not work.

The only option I have is to add the menu using html and manually update it, which would be a pain.

Is there a way to get the above code to work?

Hope you understand, thanks in advance Smile
You will have to enable a plugin that allows you to insert PHP. Try this one: http://mybbhacks.zingaburga.com/showthread.php?tid=260

Than make the WordPress header in a separate file called header.php (for example) and include the header.php in the WordPress theme and forums with:

<?php include("header.php"); ?>

Whenever you update header.php it will be updated in the WordPress header and the MyBB header.
Thanks can I use a full url in that code?

For Example:

<?php include("http://www.MYSITE.co.uk/header.php"); ?>
Correct.