Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter William Alexander

    (@williamalexander)

    No help?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    These filters are only output on archives/main loop – it does not apply to recent_products. You will need a custom shortcode, based on recent_products.

    Thread Starter William Alexander

    (@williamalexander)

    But using the custom shortcode doesn’t solve the problem you mentioned – I still don’t have the filters – right?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    No but you could built your own sorting functionality into it.

    The layered nav filters only work with the main WP query. Perhaps you could ‘fake’ it with a ‘new products’ category.

    Thread Starter William Alexander

    (@williamalexander)

    The faking it really doesn’t make sense, though, because essentially if I create a “New Product” category, I’ll just be applying that category to every single product that gets added, and then showing the products added within the last 2 weeks. So the “New Product” part of that seems completely unnecessary – because a more simple solution would be just showing the products added in the last two weeks without the extraneous “New Product” category.

    Isn’t there some way for me to use the WooCommerce “archive” page as a basis for creating a secondary “shop” page that shows the last two weeks of products on one particular page of the website? I tried this, making a “custom page template” using the WooCommerce Archive page as the basis – but when I use it there are no posts generated by the query – I believe because there isn’t a query. So I tried adding a new query but I couldn’t get that to work. Maybe that’s where I need the help? How do I write a new query so that a WooCommerce “Archive” page will work as a “Custom Page Template” ?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    > Isn’t there some way for me to use the WooCommerce “archive” page as a basis for creating a secondary “shop” page that shows the last two weeks of products on one particular page of the website?

    This is why I suggested the category.

    If you want filters, you need to be on an archive. An archive includes the shop page and all product categories.

    Since you cannot limit the shop page to show from the past 2 weeks, thats why I suggested the new product category. It gives you full control over what is shown.

    Then instead of your page with shortcode, you send the user to category/new-products

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘I'd like the Recent Products page (using the shortcode) to be sortable.’ is closed to new replies.