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

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Product taxonomy in asp_result_groups #45371
    joshinmartinjoshinmartin
    Participant

    Thank you – we made some progress now. We can see the titles of category now. But still, the content and link is not appearing in the result.
    You can see the test website here: https://tsw.detypedev.com/

    Can you check the code for us, please –

    $args = array(
    ‘s’ => $_POST[‘aspp’],
    ‘_ajax_search’ => true,
    ‘post_type’ => array(‘product’),
    ‘post_status’ => array(‘publish’),
    ‘posts_limit’ => 5,
    ‘keyword_logic’ => ‘AND’,
    ‘post_fields’ => array(
    ‘title’, ‘ids’,’content’, ‘excerpt’,’url’
    ),
    ‘post_tax_filter’ => array(
    array(
    ‘taxonomy’ => ‘product_cat’,
    ‘include’ => array(50),
    )
    )
    );
    $asp_query = new ASP_Query($args);
    $groupss = $asp_query->posts;

    in reply to: Product taxonomy in asp_result_groups #45341
    joshinmartinjoshinmartin
    Participant

    You cannot access this content.

    in reply to: Product taxonomy in asp_result_groups #45340
    joshinmartinjoshinmartin
    Participant

    Thank you, Ernest,

    Unfortunately, this doesn’t solve our issues :-(.

    We have the result group sections like ” page, posts and products ” already and we need to add a new tab from “woo product category” to the same result group. not as a separate result group.

    Sorry if I am still unclear to you.

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