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

This topic contains 6 replies, has 2 voices, and was last updated by

 
Keymaster
5 years, 4 months ago.

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

    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
    You cannot access this content. Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #9970

    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

    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: https://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: https://i.imgur.com/KDFcVrK.png

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #9986

    Participant

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

    #9987

    Participant

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

    #10013

    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!

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.