Are you a GenerateCustomer?

Do you have an active GP Premium or GenerateBlocks Pro license key?

Create a GenerateSupport account for GeneratePress and GenerateBlocks support in one dedicated place.

Create an account
Already have a GenerateSupport account? Login

Just browsing?

Feel free to browse the forums. Support for our free versions is provided on WordPress.org (GeneratePress, GenerateBlocks).

Want to become a premium user? Learn more below.

Dynamic display of Woocommerce Products of the same category of a single Product

  • I have been using GeneratePress for many years and I really love it! I find no solution to this issue for a Woocommerce Shop: I want to display at the bottom of every single product page a mini-catalog of Products of the same category (best of all of the same custom taxonomy) of the Product itself. I found the way to display this loop using a specific name of category, but I really want to generate dynamic query, using exactly and only the categories of the Product itself. Is there any simple way to display them (using dinamic data or some query loop..)? Alternatively can you suggest me a way using code? Thank you very much for your support.

  • Hi Dario,

    In Appearance > Customize > Layout > WooCommerce, there’s an option to add related products for Single Products. Reference: https://docs.generatepress.com/article/woocommerce-overview/#single-product

    But that option relies on WooCommerce’s shortcode mentioned here if you want the logic/code to it: https://woocommerce.com/document/woocommerce-shortcodes/#related-products

  • Hi Fernando, thanks for your suggestions.
    I decided to build a shortcode by myself. There was no pre-built solution for my need.
    Thanks the same for your support.

  • I see. Glad you found a solution! You’re welcome, Dario!

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