Title: Short code format
Last modified: October 16, 2020

---

# Short code format

 *  Resolved [fhithich](https://wordpress.org/support/users/fhithich/)
 * (@fhithich)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/short-code-format/)
 * I managed to get access to the Premium Plan which cured my previous problem.
 * Yesterday I successfully created a post with map using
    [osmap markers=”NY37450883!
   red;High Pike|NY38790956!green;Scandale Pass”]
 * But today a post with this failed
    [osmap markers=”NZ65401023;Nanny’s Nook”]
 * I’ve actually pruned this down to the minimum as I wanted two markers but I just
   can’t see what is wrong.
 * However converting the grid ref to lat/long does work
    [osmap markers=”54.483212,-
   0.992078;Nanny’s Nook”]
 * I’m confused. Any help appreciated.
 * Thanks

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Plugin Author [skirridsystems](https://wordpress.org/support/users/skirridsystems/)
 * (@skirridsystems)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/short-code-format/#post-13545665)
 * You haven’t said what the failure is, nor given me a URL to look at. I can’t 
   see any problem with this shortcode when I try it on my site.
 *  Thread Starter [fhithich](https://wordpress.org/support/users/fhithich/)
 * (@fhithich)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/short-code-format/#post-13546179)
 * Sorry.
 * I thought the best way to illustrate my problem is by editing an old post so 
   take
 * [http://www.fhithich.uk/?p=23127](http://www.fhithich.uk/?p=23127)
 * I’ve removed the old <–raw–> coding and added two maps
    [osmap markers=”NZ58421272”][
   osmap markers=”54.506437,-1.099305”]
 * The 2nd is a straight conversion of the OS Grid. But both give a grey rectangle
   which confuses me even more.
 * In desperation, I added a 3rd map using the coding that worked for me yesterday:
   [
   osmap markers=”54.483212,-0.992078″]
 * And still does.
    Thanks, Mick Garratt
 * Cut and paste of exact posting:
    “… The good side of humanity. [osmap markers
   =”NZ58421272”] [osmap markers=”54.506437,-1.099305”] [osmap markers=”54.483212,-
   0.992078″] ”
 *  Plugin Author [skirridsystems](https://wordpress.org/support/users/skirridsystems/)
 * (@skirridsystems)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/short-code-format/#post-13546254)
 * This is really strange. One thing I notice is that the quotation marks you’re
   using look more like ‘smart quotes’, i.e. the curly ones that MS Word substitutes
   for the plain ascii quotes. I don’t know if that is the problem, but if I copy
   and paste your shortcode onto my site, I see the same problem. If I delete the
   double quotes and add them back in manually using shift-2 on my keyboard, then
   it all works fine. WordPress will only recognise plain ascii quote marks, either
   single or double, for shortcode purposes.
 * You can get away without quotes at all if there are no spaces or funny characters
   in the shortcode attribute. You could try [osmap markers=NZ58421272]. Unfortunately
   that won’t work when you want to add a label which includes spaces or apostrophes,
   such as Nanny’s Nook.
 * Are you pasting in the shortcode from somewhere else? Is one of your plugins 
   doing some clever substitution on quotes to pretty them up, and breaking shortcodes
   in the process? I think you’re using the standard 2017 theme so that shouldn’t
   be a problem.
 *  Thread Starter [fhithich](https://wordpress.org/support/users/fhithich/)
 * (@fhithich)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/short-code-format/#post-13546282)
 * Just spotted the closing quotation marks in my shortcode are different.
 * The ones that don’t work are ” (decimal Unicode number = 8221)
    and the one that
   does is ″ (decimal Unicode number = 8243)
 * Subtle, hadn’t realised there was a difference,
 * For info my keyboard gives ” (decimal Unicode number = 8220)
 * I haven’t tried whether this is the problem but suspect it is.
 *  Thread Starter [fhithich](https://wordpress.org/support/users/fhithich/)
 * (@fhithich)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/short-code-format/#post-13546287)
 * Ah, crossed in transit
 *  Thread Starter [fhithich](https://wordpress.org/support/users/fhithich/)
 * (@fhithich)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/short-code-format/#post-13546299)
 * Yes, that’s cracked it.
 * Thanks, sorry to trouble you. I’m aware of the problem now.
 * By the way, I’m using a Mac.
 *  Plugin Author [skirridsystems](https://wordpress.org/support/users/skirridsystems/)
 * (@skirridsystems)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/short-code-format/#post-13546704)
 * Ah, right, I hadn’t thought about a Mac keyboard. So how did you get the working
   quotes on your keyboard? I’ll add that to the documentation.
 *  Thread Starter [fhithich](https://wordpress.org/support/users/fhithich/)
 * (@fhithich)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/short-code-format/#post-13546950)
 * In the end, I started by copying and pasting an example from your [https://skirridsystems.co.uk/wordpress-plugins/os-datahub-maps/](https://skirridsystems.co.uk/wordpress-plugins/os-datahub-maps/)
   but somehow the last quote must have got corrupted. I can’t remember whether 
   if at one point I cut the last quotation mark and merely added one in using the
   keyboard (“). Or it may have happened when I flipped between ‘visual’ and ‘text’
   on the WordPress edit screen. I could experiment if you want.
 * On most Mac programs, there is an option ‘Emoji & symbols’ under ‘Edit’ which
   gives the following double quotes:
 * RIGHT DOUBLE QUOTATION MARK ”
    QUOTATION MARK ” DOUBLE PRIME ″ DOUBLE ACUTE ACCENT
   ˝ HEAVY DOUBLE COMMA QUOTATION MARK ORNAMENT ❞
 * Again I would have to experiment to decipher. But I’ve just created a crib sheet.
 * Thanks again. Mick Garratt

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Short code format’ is closed to new replies.

 * ![](https://ps.w.org/os-datahub-maps/assets/icon-256x256.jpg?rev=2376803)
 * [OS DataHub Maps](https://wordpress.org/plugins/os-datahub-maps/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/os-datahub-maps/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/os-datahub-maps/)
 * [Active Topics](https://wordpress.org/support/plugin/os-datahub-maps/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/os-datahub-maps/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/os-datahub-maps/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [fhithich](https://wordpress.org/support/users/fhithich/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/short-code-format/#post-13546950)
 * Status: resolved