Support » Plugin: A-Z Listing » Only Filtering Throuhg ONE Category From WooCommerce

  • Hi,

    I would like to show only ONE category from the WooCommerce. So only show all the products within the Energy Library category.

    How would I do that? At the moment I have

    [a-z-listing display=”terms” post_type=”product” taxonomy=”product_cat” terms=”energy-library”]

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • How do i show the ACTUAL product from woocommerce not just the text link?

    Plugin Author Daniel Llewellyn

    (@diddledan)

    Hi,

    For your first question you want display="posts" instead of what you currently have (display="terms").

    The second question will require some custom theming depending on your site’s requirements. There is a template in the plugin which you can copy into your theme and edit to suit. This template is at wp-content/plugins/a-z-listing/templates/a-z-listing.php.

    One caveat is that the post (product) is not loaded fully by the plugin in an attempt to improve performance and reduce memory load. However, this means you are likely going to miss some WordPress functionality such as excerpts until you change this:

    while ( $a_z_query->have_items() ) :
    	$a_z_query->the_item();

    to this:

    while ( $a_z_query->have_items() ) :
    	$a_z_query->the_item();
    	$a_z_query->get_the_item_object( 'I understand the issues!' );

    If you have lots of products in your listing this could potentially cause loading the page to hit your server’s time or memory limits.

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