Simple Machines Forum SSI feed into WP Page
-
I am currently developing a WP Theme for my client and I need to be able to show the latest topics from the Simple Machines Forum on the home page (within a Tabber tab page).
The SMF instructions for showing information on an external PHP page say to insert the following code on line 1 before the
<html>
tag.
<?php require("/ool/smf/SSI.php"); ?>
Then insert this code in the relevant part of the page:
<?php ssi_recentTopics(); flush(); ?>
I do that and keep getting the following error message:
Fatal error: Cannot redeclare is_admin() (previously declared in /ool/wp-includes/query.php:40) in /ool/smf/Sources/Security.php on line 821
Is there any reason why WP would not like displaying SMF data
Thanks in advance. btw I’m not a PHP guru so if you can answer in laymans terms where possible, I’d really appreciate that.
The site is here: https://oldshutup.co.uk/ool/
SMSU
- The topic ‘Simple Machines Forum SSI feed into WP Page’ is closed to new replies.