Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to put maps inside of a wordpress CMS, but I'm running into troubles with the permalink structure ignoring the maps all together...

I have a .htaccess file that will force WordPress to ignore a directory, and I can have the page render, but not inside the pages...

I've tried embedding an iframe, both from an .htaccess allowed directory, and even from a subdomain that has nothing but a test map on it.

I'm fairly new to GIS, so any help in connecting a MapServer / MapScript system into WordPress would be genuinely appreciated.

If there's any other data you need, please let me know.


share|improve this question
Hey matt, this sounds like it might be more of a wordpress question than a GIS question. You might have better luck elsewhere. That being said, AFAIK, MapScript produces images, which need to be linked to. In PHPmapscript, you'd need to do $img = $map->draw(), and then $img->save('c:\my_web_folder\images\mymap.gif'). Then your page would need an <img src="/images/mymap.gif">. – canisrufus Aug 28 '11 at 22:34
all of which is to say, i don't know anything about wordpress, and am assuming you should be able to link to the image, just like any other image. – canisrufus Aug 28 '11 at 22:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.