SPG integration
I’ve had a couple of emails recently about how I got the gallery to work in wordpress.
Probably about time I posted the method here!
in your sp_index file, you need to add the following code:
< ?php
/* Don't remove this line. */
require('../wp-blog-header.php');
?>
< ?php get_header();?>
then everything inside the div id="spg" that is the guts of SPG.
For my theme, I amended the footer to include a mention to spg and calls for sidebar and footer.
Hope this helps. If you need more help, leave a comment.









I would need some help… I get this error:
Fatal error: main(): Failed opening required ‘../wp-blog-header.php’ (include_path=’.:/usr/local/lib/php’) in …/Gallery/sp_index.php on line 3
Any suggestions? Grateful for help.
Comment by Erik — October 12, 2005 @ 5:50 pm
I’m assuming you’ve been round in circles on wordpress.org help? This error, means that the php server cant find that file, so check your path.
mine is ../ because gallery is inside my blog folder, if yours is elsewhere, you may need to change this.
Comment by Luke — October 13, 2005 @ 1:50 pm