• Conrad says:

    Is there a way to do this via a dropdown on the front page?

  • Bryce Wilson says:

    Is there a way to show all posts?

    such as the query_posts arg posts_per_page => -1

    I did come up with a solution where you would check to ensure that product subcategories are not overriding the specific category page, then update the wp_query, however -1 does not seem to work properly here either.

    I added the following to a custom archive-product.php template:

    global $woocommerce, $wp_query;
    if ( ! $product_category_found ) {
    $wp_query->post_count = 20;
    $args = array_merge( $wp_query->query_vars, array( ‘posts_per_page’ => ’20’ ) );
    query_posts( $args );

Leave a Reply

Your email address will not be published. Required fields are marked *

WhatsApp chat Talk to Me