Forum Replies Created
-
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: Pagination not working with custom search slug #31096
the same code is working without any issue without wpsolr, but after activating plugin, there is pagination issue. Can you try this and let me know
function wpb_change_search_url() {
if ( is_search() && ! empty( $_GET[‘s’] ) ) {
wp_redirect( home_url( “/search/” ) . urlencode( get_query_var( ‘s’ ) ) );
exit();
}
}
add_action( ‘template_redirect’, ‘wpb_change_search_url’ );prakashreddy.imduriParticipant4 years, 2 months ago in reply to: WP Solr Search for Custom Taxonomy Pages #31093okay, can this behavior be changed ? to show only the selected term in taxonomy pages instead of matching taxonomies?
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: Pagination not working with custom search slug #31092I just wanted to display search url as domain.name/search/?s= instead of the default domain.name/?s=, That function worked, but only problem is the pagination when /search/ is present in url.
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: Pagination not working with custom search slug #31089there is no page for it in backend , its just an url rewrite for the wordpress search functionalityz. we are not using any shortcode. the function just adds /search/ to ?s in url…
its a custom slug for wordpress default searchprakashreddy.imduriParticipant4 years, 2 months ago in reply to: WP Solr Search for Custom Taxonomy Pages #31088I figured out one thing, whenever we are on a term page, if it has children terms, they are showing up. else that complete term widget is hiding.
And I selected a taxonomy here, others are also showing up, may I know the reason why these are showing up.
. Any possibility to only show selected taxonomy ?prakashreddy.imduriParticipant4 years, 2 months ago in reply to: Pagination not working with custom search slug #31086All css selectors are fine, bcos the ajax and pagination is working without that function wpb_change_search_url()
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: Pagination not working with custom search slug #31082we are using this function for slug rewrite
function wpb_change_search_url() {
if ( is_search() && ! empty( $_GET[‘s’] ) ) {
wp_redirect( home_url( “/search/” ) . urlencode( get_query_var( ‘s’ ) ) );
exit();
}
}
add_action( ‘template_redirect’, ‘wpb_change_search_url’ );Ajax is getting sent, but still no results or page number is changing
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: WP Solr Search for Custom Taxonomy Pages #31079I can still see some random current taxonomy showing up in that taxonomy pages, sometimes it also shows up some related taxonomy along with parent term, which should be hidden I guess.
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: WP Solr Search for Custom Taxonomy Pages #31070any update on this ?
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: Exclude posts based on custom acf field value #31069Adding this has added filter in frontend with acf field, with Yes prechecked, we dont need any filter in front end, we wanted to exclude indexing of product based on ACF field value if its set to NO.
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: WP Solr Search for Custom Taxonomy Pages #31067Hi, I am facing issue with taxonomy pages. If I am in a taxonomy page called A, some more facets are also showing along with current taxonomy page.
And this behaviors is changing for different taxonomy pages, for some pages the taxonomy facet is completely hidden, for some its showing up with children instead of parent taxonomy.Can you tell me why this is happening ?
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: Facets Sort by Alphabetical Order #30915Okay.
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: Facets Sort by Alphabetical Order #30913I want to disable this feature, Can you pls guide .. I checked in incognito mode, all the facets were collapsed.
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: Facets Sort by Alphabetical Order #30911Okay, it worked.. I tried adding zero , it didn’t work.. changing to it 2000, worked. But there are some child facets still getting expanded, not able to find out the reason for that. Could you help me to fix this?
prakashreddy.imduriParticipant4 years, 2 months ago in reply to: Empty hidden field sel_fac_field #30907okay