Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author wpdreams

    (@wpdreams)

    Hi!

    This is not a javascript issue as far as I can see it. The shortcode is not executed.

    There are a few things you need to check:
    – Is the shortcode placed in the theme file? If so, is it placed correctly with the do_shortcode(..) statement?
    – Is the plugin activated? It might have been de-activated accidentally. I know it usually never happens, but it’s worth checking.
    – If you place the shortcode elsewhere, is it working?

    Thread Starter Reinhold667

    (@reinhold667)

    Heya the shortcode is not working anywhere, as a widget it works however

    I deactivated and again activated it now, but with no success =/

    The plugin worked wonderfully until some days ago, I did not change the theme or updated anything so its quite weird that it stopped worked from one day to another.

    Where would I have to check if the shortcode & statement is placed or where would I have to place it?

    Thanks for the reply already!

    Plugin Author wpdreams

    (@wpdreams)

    Well, if the shortcode is placed correcly, there are two possible explanations in this case:
    – The shortcodes are not yet registered by wordpress when it comes to the execution of the search shortcode. I’ve only seen similar issues when the shortcode was placed into the header.php before a certain point.
    – Or something de-registers the shortcode perhaps?
    Both cases are extremely hard to debug unfortunately.
    Something must have happened (silent core update, theme update, another plugin update) that changed something slightly.

    Generally you can place any shortcode anywhere in the theme after the closing </head> tag, it should be exectuted. As far as I can see this is exactly how you have it.

    Is it placed directly into the theme or into a widget? Text widgets which contain shortcodes doesn’t execute shortcodes, you will need to add an extra hack to make it work: https://www.wpbeginner.com/wp-tutorials/how-to-use-shortcodes-in-your-wordpress-sidebar-widgets/
    I’m not sure if this solution works in all the cases, but it’s worth a try.

    Thread Starter Reinhold667

    (@reinhold667)

    Boomshakkalakka! the “hack” worked , the search is back and the problem is solved, the world is a better place now again ??

    Thanks a ton for the help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Seems the search shortcode is not working anymore?’ is closed to new replies.