March 12, 2019 at 12:59 am #1077594
Using Masonry to display woocommerce products from one product category.
If I set all products in that category to draft (we wish to temporarily suspend products from this categopry for example) instead of displaying no products as expected the masonry element on the page displays posts from random categories. As a reslut any masonry element displaying products from that category must be manually deleted from the page until the category has products again which is very painful.
I would expect (and need) a masonry element set to display products from a category that is empty to simply display no products.
Can you please explain how to acheive this?
Many Thanks, MMarch 14, 2019 at 9:00 am #1078592
I think it’s easier just to hide masonry temporarily then try to fix it. Is it set to show other categories too or is it single category masonry?
VictoriaMarch 14, 2019 at 12:11 pm #1078662
Masonry set to show a single category. If this is empty instead of showing nothing, posts from random categories (including drafts) are displayed.
I see this behaviour on every site I test on – including fresh install no plugins. Is this a bug that will be fixed?
Secondly – hiding the masonry when category empty is exactly what I want to do – but this MUST be automated (I cannot manually disable masonry on hundreds of pages when a category of product is out of stock). How would I do trhis?
Thanks, MMarch 15, 2019 at 6:34 pm #1079206March 20, 2019 at 6:36 pm #1080943
This is the intended behavior, it shows random posts if the chosen category is empty, yes. I know it is not ideal but this is how it works.
VictoriaMarch 20, 2019 at 6:39 pm #1080947
You are aware that it also shows draft (unpublished) products? Far from ideal – e.g. if a category sells out masonry all over the site could be displaying draft content.March 25, 2019 at 11:43 pm #1082892
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ).
- Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.
BasilisMarch 27, 2019 at 11:31 pm #1083829
Hi Basilis – localhost right now but will get a live demo of issue up shortly and let you know.March 31, 2019 at 6:27 pm #1085121
You must be logged in to reply to this topic.