leamh / leamh-wp-theme

1 stars 1 forks source link

Array for "dictionary":[ Not Working #103

Closed whamrick closed 6 years ago

whamrick commented 6 years ago

@joelsalisbury @timthewebguy

Can't seem to get the "dictionary" attribute to work with an array. Instead of giving each string in order, it displays all three at once. The array for "notes" displays properly, however.

The problem word is "Cú" in Cú Chulainn an Chroidhe Mhir:

{ "id":"Cú", "dictionary":[ "cú, noun (m. & f.) Hound, here part of a proper name.", "cú, noun (m/f). Hound; here Cú Chulainn.", "cú, noun (m/f). Hound; here Cú Chulainn." ], "form":"same (nominative singular)", "notes":[ "subject of the verb in the second line of the quatrain; in Irish, the subject normally follows the verb, but word-order in poetry is more flexible", "the subject of the verb; this is a short form of Cú Chulainn's name", "the subject of the verb; this is a short form of Cú Chulainn's name" ], "glossary":"cu" },

whamrick commented 6 years ago

screen shot 2017-09-23 at 11 43 12 am

joelsalisbury commented 6 years ago

Hmm...

@timthewebguy I'm not particularly familiar with this portion of the code. Let me know what you think.

tkofh commented 6 years ago

All set, should work now!

whamrick commented 6 years ago

@joelsalisbury @timthewebguy Beautiful! Thanks, gentlemen.