Appendix
Adding JavaScript code to WordPress websites
WordPresss is designed to separate code from content, so you will need to ask your website developer to add the JavaScript for the directory to the files of your website.
However, if you have some knowledge of how WordPress works, you could install a plugin to enable the scripts, as described in this article:
https://wordpress.com/go/website-building/how-to-properly-add-javascript-to-wordpress-3-top-methods/
Using an iframe instead of JavaScript
Alternatively, you might like to insert the directory using an iframe, which you can enter into a page in WordPress.
Steps to access the code
Step 1 - Go to the main settings page.
Step 2 - Under Settings > Select Web Directory.
Step 3 - Select the Preview Directory tab - find your unique api from the code in the blue box containing the javascript - it is a long string of letters and numbers inside quotes next to getMMDirectory.

Step 4 - Use the following html code, replacing ‘your-key’ with the your unique api key.
<iframe src="https://www.magmanager.co.uk/service/webdirectory?apikey=your-key" width = 100% height = 800px allowfullscreen="" frameborder="0"></iframe>
Step 5 - Optional add on filters and displays code:
If you want to add a filter for your publications, add:
your-key&publications=true
If you want to add a filter for your publications with badges rather than a drop-down menu, add:
your-key&publications=true&badges=true
By default, your advertisers will be arranged by section. To arrange advertisers by Category instead, add:
your-key&type=2
To arrange advertisers by Section/Category, add:
your-key&type=3
If you want to organise by Category and use the publications filter, add:
your-key&type=2&publications=true&badges=true
Step 6 - Add the HTML code to your website.

