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

only show productos from custom taxonomy category

Home Forums Product Support Forums Ajax Search Pro for WordPress Support only show productos from custom taxonomy category

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #9961
    boussobousso
    Participant

    my friend I read all documentation , I try and try configurations , but still can´t make it work :

    I made a horizontal auto-popupate result on front :
    – first problem – can´t limit product results , I put 8 but still show everything it founds.
    -second problem – can´t make it to show only results from my “categorias productos – electronica” custom taxonomy.

    If you can help me please, thank you !!!

    #9969
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #9970
    boussobousso
    Participant

    my friend this is perfect, in the front I need at least 8 horizontal carrusels so I guess I have to replicate this code right?

    add_filter( ‘asp_query_args’, ‘asp_include_only_term_ids’, 2, 2 );

    function asp_include_only_term_ids( $args, $id ) {
    /**
    * Enter the desired taxonomy=>terms here.
    * For example, if you want to search category 1 and 2, then:
    * “category” => “1,2”
    */
    $include = array(
    “categoriageneral” => “166”
    );
    $search_ids = array(7);

    if ( !in_array($id, $search_ids) )
    return $args;

    #9972
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    If you update to the latest version, 4.9.7 (it was released earlier today), then you don’t even need that. On the Advanced Options -> Exclude results panel you can select the category to include posts from: http://i.imgur.com/9tM0Wf8.png

    If you even don’t want to include items which have no categories/terms, then on the Frontend-search settings -> Advanced panel turn off the Show posts/CPM with empty taxonomy terms? option: http://i.imgur.com/KDFcVrK.png

    #9986
    boussobousso
    Participant

    perrrfectttt , I will check it again when I have time , I will let you know , thank you!!!

    #9987
    boussobousso
    Participant

    my friend , the drag uo and down on mobile still doesn´t work , should I fix the template for now right?

    #10013
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    my friend , the drag uo and down on mobile still doesn´t work , should I fix the template for now right?

    What do you mean by that? Can you please explain? Thank you!

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