abcjs icon indicating copy to clipboard operation
abcjs copied to clipboard

Using tablature and Wordpress plugin

Open PREdwards opened this issue 2 years ago • 2 comments

I am impressed with the tablature functionality, but am having difficulty using it in the ABC Notation Wordpress plugin. The problem is that square brackets cannot be passed in the WP shortcode attributes, so something like this won't work:

[abcjs options="{tablature: [{instrument: 'violin',label: 'Mandolin',tuning: ['G,', 'D', 'A', 'E']}]}"]
...
[/abcjs]

I have tried using [ and ] in place of "[" and "]", but this doesn't help. Is there any way to work around this?

PREdwards avatar Aug 15 '22 15:08 PREdwards

I'll look into it. I think the first problem is that I haven't updated the WordPress plugin to use tablature, so that's my first step.

Thanks for reporting this!

paulrosen avatar Aug 16 '22 15:08 paulrosen

The WordPress plugin is updated and supports tablature now.

I looked into the brackets and I guess the answer is to use [ and ] like you mention. The plugin works with that now.

It seems like there could be a more convenient way to do the brackets. I'm open to suggestions.

paulrosen avatar Sep 05 '22 00:09 paulrosen