This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Forum Replies Created

Viewing 15 posts - 3,361 through 3,375 (of 18,427 total)
  • Author
    Posts
  • in reply to: WPML and Products are not displaying #45498
    Ernest MarcinkoErnest Marcinko
    Keymaster

    If the WPML compatibility is enalbed the plugin will always show only the results within the current language – so in that case you don’t need to exclude anything at all.
    If the translations for the desired content will exists for that language, then it should work without exclusions.

    in reply to: Settings not showing up #45494
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you for the details!

    From the page source it seems as if the settings initializer script is missing for some reason. Can you please try changing this option to see if that helps?

    in reply to: Custom URL for Results #45493
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: show blog and products in search results with different layouts #45492
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Do you mean the results on the results page?

    I’m afraid that is only possible by editing the theme. The WooCommerce results page will automatically remove anything that is a product. The regular results page however may not display the add to cart button. Unfortunately the plugin can not affect that, it is purely rendered by the theme you are using.
    Theoretically if everything were to be rendered on the regular results page (not the WooCommerce one), that should be custmomizable to display everything as you like – but that is definitely not an easy task.

    in reply to: Caching issue?? #45490
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: WPML and Products are not displaying #45489
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you very much for the details, it helps greatly!

    My guess is that category ID conflicts might be happening here. I think the best course of action would be to make another search bar, and use the first on the english and the second on the german version.
    On the back-end, you can switch languages – so you can configure each search bar in the current language, that should avoid any conflicts. Then use each on the corresponding language.

    Let me know if that changes anything!

    in reply to: How to customize result page on divi ? #45482
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    The results page is completely controlled by your theme, search plugins can’t change that. If you are using Divi, try checking their documentation about that, or asking their support – it is probably possible as Divi is a very versatile theme.

    in reply to: Custom Loop #45481
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: How to customize the shortcode for specific results #45480
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Caching issue?? #45479
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: searching on selected categories #45478
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Those numbers just basically show how many elements (posts or other post types) are associated with them. If it shows 0 – then it means, there are no items associated with that category, therefore filtering by it will return nothing as well.
    You can assign these categories to the posts on the post editor panel.

    in reply to: Shortcode does not work to display search properly #45477
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Unfortunately the screenshots were not attached, but I think I still know what the issue is.

    If the layout of the form is different on the front-end and the back-end, especially if it shows the “original” default style or it is not changing, that is 99.9% of the time caused by cache. Clearing all layers of cache including page, CDN, minify, styles and scripts will very likely resolve the problem.

    in reply to: Elementor Pro live filter search result issue #45476
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Custom field as Title in Search results #45473
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Custom URL for Results #45472
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Yes, of course 🙂

    Here you go:

    // Remove the line below, if you don't want to affect the Live results list
    add_filter( 'asp_results', 'asp_custom_link_results', 10, 4 );
    // Remove the line below, if you don't want to affect the results page
    add_filter( 'asp_noajax_results', 'asp_custom_link_results', 10, 4 );
    function asp_custom_link_results( $results, $search_id, $is_ajax, $args ) {
        // Replaces each result URL with this
        $replace_with = 'https://google.com';
    	$apply_to_search_ids = array(2); // Search IDs to apply the code to
    
        // --- DO NOT CHANGE ANYTHING BELOW ---
    	if ( in_array($search_id, $apply_to_search_ids) ) {
    		foreach ($results as $k=>&$r) {
    			// Ajax results link
    			if ( isset($r->link) ) {
    				$r->link = $replace_with;
    			}
    			// Results page link
    			if ( isset($r->asp_guid) ) {
    				$r->asp_guid = $replace_with;
    			}
    		}
    	}
    
        return $results;
    }
Viewing 15 posts - 3,361 through 3,375 (of 18,427 total)