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,796 through 3,810 (of 18,427 total)
  • Author
    Posts
  • in reply to: How do I search just a specific Page #44323
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: "Jump to top"-issue on reloading – only on iOS/chrome #44322
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Real word Usability issue with date selector/calendar #43079
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: How to exclude certain media files from the search? #43076
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You are welcome 🙂

    No problem, that is also possible via this changed code:

    add_filter("asp_query_args", "asp_query_args_change", 10, 2);
    function asp_query_args_change($args, $search_id) {
    	if ( $search_id == 1 ) {
    		
    		$include_ids = array(1, 2, 3); // Media file IDS to include
    		
    		// No change below
    		$ids = implode(', ', $include_ids);
    		$args['attachment_query']['where'] = "AND $wpdb->posts.ID IN($ids)";
    		return $args;
    	}
    }

    Just change the number on line with the ID of the search for which this code should be effective: if ( $search_id == 1 ) {

    in reply to: Real word Usability issue with date selector/calendar #43074
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Search shows incorrect results #43073
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you very much for the details, it helps me a lot!

    The results are very likely matched from either the selected custom fields or via the taxonomy terms as configured here: https://i.imgur.com/FLwTr7O.png
    There is probably a custom field or a category name associated with those results which makes it a match. Try removing some custom fields or turning off the taxonomy search to see if that makes a difference, it should resolve the issue.

    I also tried the search when logged in, but it seems to work okay on my end: https://i.imgur.com/sqx56vp.png
    You may only need to clear the browser cache, that should resolve that issue.

    in reply to: How to exclude certain media files from the search? #43072
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you very much for your kind words and for the details it helps me a lot!

    I believe the best way to get around this is by using this option to exlude media files by their IDs.

    Unfortuntely there is no option to include only specific media files, but it should be still doable via using a small custom code snippet:

    add_filter("asp_query_args", "asp_query_args_change", 10, 2);
    function asp_query_args_change($args, $search_id) {
    	$include_ids = array(1, 2, 3); // Media file IDS to include
    	
    	// No change below
    	$ids = implode(', ', $include_ids);
    	$args['attachment_query']['where'] = "AND $wpdb->posts.ID IN($ids)";
    	return $args;
    }

    In this code you only need to change the $include_ids variable and add the meida file IDs which you want to see in the results list. Try adding this code via the Code Snippets plugin or to the functions.php file in your theme/child theme directory – make sure to have a full server back-up first for safety. For more details you can check the safe coding guidelines.

    in reply to: Ajax Search Pro as a filter #43071
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi Samuele,

    Elementor Loops with default configuration (using current query) may actually work if combined with the Posts/Product widgets or the archive widgets if used on archive pages. A more generic support will be added in the next release.

    Other elements may only work if used on Archive pages – where they use the currently active query. Unfortunately there is just too many widgets out there and they change very often, for now we can only keep up with Elementor.

    in reply to: URL path in description #43063
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Live Load Ajax #43058
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    in reply to: Search Bar not working on search results page #43055
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Sure! The results page live loader might be enabled, but it can’t find the specified node. Can you please try to turn it off here: https://i.imgur.com/ugjTf5P.png

    That should very likely do the trick.

    in reply to: Autocomplete #43054
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    It will look for the post tag which matches, the count of items within the taxonomy is not considered in this case. It only checks the text – as fast as possible – and returns immediately if a match is found.

    Yes, the ordering matters in this case. It goes from the top, to the bottom of the source list until it finds a keyword from the given source. In your case it will try the post tags first, if no match, then tries the statistics database.

    in reply to: URL path in description #43053
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 15 posts - 3,796 through 3,810 (of 18,427 total)