Tested with gallery shortcode and it is OK.
This is this plugin:
https://wordpress.org/plugins/widget-shortcode/
I am trying to put PHP code inside accordion shortcode, in a text widget with PHP code enabled. Tried even with this plugin, same problem.
https://wordpress.org/plugins/shortcode-exec-php/
Can you provide a link for me to take a look?
It is a localhost developing, sorry.
– Disabled all plugins, same.
– Tested with some default theme, same. As I can see, needs hell of work to replicate what I do in custom theme.
– Removed theme jquery file, all theme JS scripts temporary, same.
I have same results if I use 2 separate accordions with one accordion.
So long I tried all this stuff and allways same results, second accordion shows content outside accordion.
PHP code i tried inside accordion shortcodes:
– the_widget
– get_template_part
– dynamic_sidebar
– other shortodes
First accordion behave OK, second shows content outside (as open but not really open) and not clickable. Despite I test with same content inside both accordions. Or very similar.
I solved problem before I send last comment, but felt like you deserve detailed explanation.
Anyway I am stupid. Lost 2 days on it. 🙂 Had multiple <?php wp_footer(); ?> on homepage.
– I am making homepage of multiple mini-loops and custom mini archives. as those professional and expensive themes had.
– Want mostly to keep Bootstrap columns and Bootstrap equal height goodness inside those mini-loops and reduce hours and days of work for responsive.
– Completely forgot to delete/comment footer part in mini-loops.
Thanks for reply.
Seems as it was not only that. Now I have only one footer on page and same problem. I am calling a custom made sidebar via shortcode. Sidebar has 2 widgets (Recent Comments native, Decent Comments widget)
I tried also with simple text widget and little text inside.
First widget allways push other widgets outside of second accordion.
Tried to rearrange them and change places.
Mini loops inherited also HTML from sidebar. Removing this and leaving naked PHP code in this sidebar file for mini loops template fixed problem.
It is not easy to make all those fancy homepage templates commercial themes have. They are done by many persons and under long time. They sell them in thousands and can afford work like this.
Want to say it is like playing chess, need to think many moves in forward.