Hello
I need help with the relevanssi "did you mean" in search archive
I've inserted "did you mean" from relevanssi in the search archive when there are no search results by following https://toolset.com/forums/topic/relevanssi-didyoumean-feature/ , creating a shortcode using generatewp and code snippets code feature, and used it in the search archive.
The shortcode works, however the shortcode message always shows above the whole archive output (meaning, above blocks outside the loop, where there is some text), not in the right position.
Tried inserting it in the no results text box, after the [wpml-string context="wpv-views"], inside it after the text and also as a shortcode after the loop, where pagination usually sits. Also tried changing the shortcode priority to 99, but no changes.
You can see in the image what I mean.
Hello. Thank you for contacting the Toolset support.
Do you mean that the did you mean shortcode works just fine and you just wanted to place the shortcode at other desired place?
If this is correct, can you please share problem URL and admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Hello
the shortcode is in the loop template, but i've already tried in a shortcode block below the loop output, no difference in position on rendered page
The "did you mean" feature will be in action when archive does not find any result and the only place where you can add something to display when archive do not find any results is at "Loop Template" section for which you shared the screenshot.
It seems its not possible to add the did you mean outside that scope. You can check with Relevanssi if they have any other workaround to offer.
My issue is resolved now. Thank you!
I used the shortcode I had previously created and the "elements" feature from kadence pro to inject is exactly where I wanted.