Jump to the following:

We use cookies to improve this website. Read about cookies

OS OpenSpace and WordPress

There's a neat WordPress plugin that solves a problem with publishing web-map builder code into WordPress.

This works with a self-hosted WordPress installation, but does not work with a free blog page hosted at wordpress.com, since that doesn't accept plug-ins.

Installing WordPress to your web host server.

Follow instructions at http://wordpress.org/

Installing the Raw HTML plug in

1. Install and activate the Raw HTML plug in found at http://wordpress.org/extend/plugins/raw-html/

2. Select ‘disable the visual editor in writing’ in your user profile.

3. When you edit or add a new post, ensure that in screen options, show 2 columns is selected. This allows the Raw HTML metabox to be displayed.

3. When you edit or add a new post, ensure that in screen options, show 2 columns is selected. This allows the Raw HTML metabox to be displayed.

4. In v2.6 or higher, Select ‘Disable automatic paragraphs’ in the Raw HTML plugin metabox.

5. Collect the Web-Map Builder code and copy it directly into the WordPress editor.

6. To prevent your code from being filtered by WordPress, wrap it in raw tags as shown below:

<!--raw-->

Insert code here 

<!--/raw-->


7. That's it!

One of our developers has also created a plugin to to display OS OpenSpace maps with markers and tracks.

Back to top
© Ordnance Survey 2016
Be sure to take a look at our Terms of Use and Privacy Policy