I am trying to set up two different StatPlanet Plus maps on the same website domain, under a wordpress install.
After searching these forums I found that you need to add the following to the header to direct each page to the appropriate StatPlanet install. However I am unsure how to set this up correctly as I am encountering errors.
What I am trying to do:
I have two StatPlanet Plus maps of the UK (one at "county" level and one at "local authority" level (a smaller level of geography)). I want one map to go on the page "CountyMap" and the other to go on the page "LocalAuthorityMap".
What I have done:
1. In "uploads" added the folders "StatPlanet" for Local Authority StatPlanet maps & data and "StatPlanetCounty" for County-level StatPlanet maps and data.
2. Added the following lines to my header.php:
if ($page_title == 'LocalAuthorityMaps'): <base href="/wp-content/uploads/statplanet/" /> endif;
if ($page_title == 'CountyMaps'): <base href="/wp-content/uploads/statplanetcounty/" /> endif;
What the problem is:
Adding this to the header.php file does not seem to work.
I have tried adding it (as is) directly before the </head> tag but it does not get parsed correctly, the website simply reads it as text, the rest of the web pages' content (i.e. text) appears as normal but the maps do not load.
I have also tried adding this before the </head> tag but enclosed by <?php and ?> tags but then the webpages do not load at all (no text or maps).
Any help on this issue would be greatly appreciated.