Paulh267 on "[Plugin: Relevanssi - A Better Search] Search URL modification"

ساخت وبلاگ

Searches for relevant terms are generating a blank page. The URL for the results (blank page) is http://www.mysite.com/?s=searchterm. I need to modify the URL to http://www.mysite.com/applicant/?s=searchterm. When I manually add "applicant" to the URL my results show properly. Is this possible?

Thanks for an awesome plugin.

https://wordpress.org/plugins/relevanssi/

You need to change your search form to point to the correct URL. The form action parameter will determine the URL of the search results page URL.

Ok where do I locate the form action parameter? I have the free version of the plugin.

I don't know, as Relevanssi has nothing to do with that. It's up to your theme. The default WP search form should work fine (if it doesn't, then the problem is in your site settings).

Paulh267
Member
Posted 17 hours ago #

Mikko, I have a question similar to this. Is it possible to add extra parameters to the search URL?

Current - domain.com/?s=query
Desired - domain.com/?post_type=product&product_cat=category&s=query

I added

<input type="hidden" name="post_type" value="product" />
<input type="hidden" name="product_cat" value="category" />

to my search bar, which works fine when relevanssi IS NOT installed. When relevanssi IS installed it doesn't retu any results?

Paulh267, that should work, Relevanssi does support post type and taxonomy parameters and that's the way I recommend adding them.

If you try just one of them, does it work?

(And please start a new thread for your support question, since it's a different question than the one originally asked in this thread.)

Paulh267
Member
Posted 5 minutes ago #

Hi Mikko, thanks for the reply. I've started another thread for this conversation - https://wordpress.org/support/topic/url-rewriting-9?replies=1#post-8420996

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 243 تاريخ : پنجشنبه 30 ارديبهشت 1395 ساعت: 15:43