WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. 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 have a working HTML/JS page that uses Google Maps:


How do I import this into wordpress.barrycarter.info?

Simply cutting/pasting or doing "<?php include()?>" doesn't work, since WP processes the result before displaying it, breaking the page:


(use "view source" to see the hideously mangled JS).

I can't even use the "Google Maps v3 Shortcode" plugin, since the map overlays are generated client-side, not via KML.

share|improve this question

You could put this in as a theme page template. This would let you continue modifying your custom code.

Whatever you do, avoid plugins that let you put raw php in your posts. It's a huge security vulnerability, and it would let people do things such as submit draft posts containing shell scripts to turn your site into a zombie drone for an attacker.

share|improve this answer

Use an import plugin to get the rendered results and import these into WordPress.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.