Integrating WordPress and FanAdmin Plus

Integrating WordPress and FanAdmin Plus

6. In your text editor, create a your fanlisting index page (index.php)

7. Create the header of your index page. Put the following code at the top:


<?php define('WP_USE_THEMES', false);
require('./blog/wp-blog-header.php');
require('config.php');
get_header();
if(!$_SERVER['QUERY_STRING']) {
?>

Breaking Down the Code

<?php define('WP_USE_THEMES', false);
require('./blog/wp-blog-header.php');

This allows you include your WordPress Theme in a static page. Be sure to change the path to wp-blog-header.php to the folder path where WordPress is installed in.

require('config.php');
You need this in order for FanAdmin Plus script to work.

get_header();
This displays the contents of your Header Template.

if(!$_SERVER['QUERY_STRING']) {
?>

This is the statement you need in order to use NL-Convert-To-Php

8. Leave some space after the end of the code and enter the following for the footer of your index page


<?php
}
get_sidebar();
get_footer();
?>

This ends the NL-Convert-To-PHP code and displays the Sidebar and Footer Templates.

Now you can place your fanlisting content in between these two sets of code.

One thought on “Integrating WordPress and FanAdmin Plus”

Comments are closed.