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

Another question on checkboxes UX

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Another question on checkboxes UX

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #53829
    MauDtroMauDtro
    Participant

    Hi Ernest, sorry but I have another question related to the checkboxes UX.
    I hope it makes sense 🙂
    The video length is 1min45sec in total:
    https://www.dropbox.com/scl/fi/l4pzubyiw21tittm1su8a/filtwering-topics.mp4?rlkey=mirzw2wt4fdbn4ylf1i5amc1r&st=do5a6f2n&dl=0

    Thanks in advance.

    #53847
    MauDtroMauDtro
    Participant

    Hi Ernest, good day. Hope you are well 🙂
    Just checking if my request makes sense or if I should rephrase it?

    #53850
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    No worries, I have not answered because I couldn’t find a solution to this yet.

    Maybe via a custom code where checking if there was no option set, but I’m not sure if this works at all:

    add_filter(
    	'asp_query_args',
    	function ( $args ) {
    		if ( isset($_POST['options']) && !str_contains($_POST['options'], 'customset') ) {
    			$args['post_type'] = array( 'product', 'page', 'story', 'event', 'team', 'faq', 'video' );
    		}
    		return $args;
    	}
    );

    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.

    #53855
    MauDtroMauDtro
    Participant

    oh sorry, didn’t mean to pressure you.
    Ok, let me test this tomorrow.
    have a nice day!

    #53858
    MauDtroMauDtro
    Participant

    amazing. This did the trick.

    #53859
    Ernest MarcinkoErnest Marcinko
    Keymaster

    That’s great!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.