• Resolved eagle2014

    (@eagle2014)


    My shortcode works with [display-posts] but I am working with a small ecom site with Woocommerce. I want my “product” category to show but I have tried it several ways and no luck. ex: [display-posts category=”chakra”] does not work, [display-product posts category=”chakra”] does not work either. anybody have any suggestions?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes, read on…

    I made with CPT-UI a custom post called “product_pi” and assigned a custom taxonomy named “product_categories_pi”. Then assigned some terms to my posts from this taxonomy one of them is “fridges”.

    Then in my display posts shortcode I used the following to select only fridges:
    category_display="product_categories_pi" category_label="" post_type="product_pi" taxonomy="product_categories_pi" tax_term="fridges"

    This will give me only “fridges” and nothing else

    (I left the label blank so I can show just a dashicon with css)

    Good luck

    Plugin Author Bill Erickson

    (@billerickson)

    You can use the category_display parameter to display custom taxonomies as well.

    [display-posts category_display=”true”] – includes the “category” taxonomy

    [display-posts category_display=”product_cat”] – includes the “product_cat” taxonomy from WooCommerce

    Here’s more information on the display parameters in Display Posts.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘shortcode change?’ is closed to new replies.