Shortcode problem on the themer template

shortcode use in query block on themer template,but don’t work

  • WordPress version: 6.4.1
  • Cwicly Plugin version: 1.3.4.7

Is your query using frontend rendering or not?

If using frontend rendering then you will need to add the shortcode to the whitelist:

Alternatively, you can use a function return with the dynamic inserter:

add_filter(‘cwicly/frontend/shortcodes_whitelist’, function ($array) {
// Add two shortcodes to the list if the user is logged in, otherwise just one
if (is_user_logged_in()) {
$array = ‘my_public_shortcode’;
$array = ‘my_private_shortcode’;
} else {
$array = ‘my_public_shortcode’;
}

return $array;

});

what word i need change to my shortcode? :smiling_face_with_tear:

and add this code to where?