Server Side Includes for Multiple Blogs on One Domain
domainname.com/newblog1/
domainname.com/newblog2/
Etc.
These multiple blogs are created by copying the original files, changing one line in the config file, then installing. All are running out of the same database, just different departments of it.
I want to integrate the existing navigation for the original site into these "new blogs". Thought I had the solution using the WP "include it" plugin, but that didn't solve the problem. I couldn't get it to "call up" the file when I used their recommended code: [include file=filename]
That code was added to the sidebar.php template file
I was trying to "call up" the original navigation file. I tried renaming it to be a php file extension. That didn't work.
I did find a partial solution by using <?php include (navfile.php");?>
into the sidebar.php file.
I say partial, as the only way this worked was by putting a copy of "navfile" into the folder with the rest of that "newblog" files.
That means that I have to update the "navfile" with the "newblog" URL, and then will have to upload the updated "navfile" to every "newblog" folder that ends up on this site. OK when there are only a few "newblogs", but will be a pain if there are dozens, or more "new blogs".
Is there a solution that would enable me to update the "navfile", upload that file once, and have the "newblogs" access that file.
Appreciate any advice.
ByTheC
-
GB2008 -
Thanks
SignatureGary Bailey{{ DiscussionBoard.errors[906887].message }} -