Replies: 1 comment 2 replies
-
Hi @gfazioli can you help me with this? Thanks! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
As far as I looked, I didn't find any instructions on how to setup a multiple select on the options dashboard.
But, I figured to do with this:
but whenever I need to get the settings from the db It's doesn't works because I'm getting an array from options, and throws an error on Htmltag.php line 355
So, I need to pass it as an string, with this:
WPKirk\Html::select()->multiple(true)->name('General/multipleOption[]')->selected(join(",",$plugin->options->get('General.multipleOption')))->options($options)->render();
that leads to an non selected html/select...
So I made a modification of the html method of HtmlTag file and works fine
So here's the question, maybe I'm absolutely wrong with the approach... is there any right way to do this?
If not, to made a push request, and create a documentation page with the solution.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions