How can I display product categories within the description field in results?

Home Forums Product Support Forums Ajax Search Pro for WordPress Support How can I display product categories within the description field in results?

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 1 year ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41532
    Remi
    Remi
    Participant

    Hi,

    I want to display the product category for each product within the woocommerce results but I can’t figure it out.
    I have read the doc for descriptionfield but nothing on product categories.

    Which shortcode should I use?

    Thanks.

    #41539
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    You can use the advacned content fields for that, for product categories this pseudo code:

    {__tax_product_cat}

    Best,
    Ernest Marcinko

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


    #41540
    Remi
    Remi
    Participant

    Perfect thanks!

    #41541
    Ernest Marcinko
    Ernest Marcinko
    Keymaster
    You cannot access this content. Best,
    Ernest Marcinko

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


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

You must be logged in to reply to this topic.