Hi Team,
i have a widget like in https://siteorigin.com/docs/widgets-bundle/getting-started/creating-a-widget/
In your plugin version 2.29.16 i have two problems:
1. the siteorigin_widget_post_selector_process_query like in https://siteorigin.com/docs/widgets-bundle/form-building/post-selector/ handels my args wrong:
With
$processed_query = siteorigin_widget_post_selector_process_query( $query, true ); parse_str($loop_query, $output);
the $output becomes [amp;posts_per_page] => 6 insteadt of [posts_per_page] => 6 for example. In 2.29.15 it’s correct.
2. The do_shortcode function can’t handle the code like
echo do_shortcode('[siteorigin_widget class="my_Hero_SOWidget"] <input type="hidden" value="' . $args . '" /> [/siteorigin_widget]');
and it returns nothing.
In 2.29.15 i get the correct content.
I know this is hard to say, but if you have an idea where I can start looking for a solution I would be grateful.
Best wishes
Rico
Hi Rico,
Thanks for reaching out.
1. Can you please provide me with an example of what your query looks like? I’ve run a few tests and I can’t seem to replicate the described issue.
2. Unfortunately, the siteorigin_widget shortcode no longer supports HTML due to potential security concerns. I recommend creating a custom shortcode or directly rendering the widget using the_widget.
Kind regards,
Alex
Hi Alex,
thank you.
1.: i have an example today with the following code in my page
and in my widget tpl/
In 2.29.16 now i have to set
2.: good to know.
In my $args i have now comment out the parameters with html content like
What is the best solution if i need indidividuell html tag there?
Wrong code block: the third code is