Archived topic
Products not showing under new categories
11 replies · Started by Adedoyin on August 3, 2020
Hi there, I'm using the PRIME woocommerce theme and I'm currently having issues with new product categories. It is not displaying any product using the woocermerce short codes.
Basically I created a new category page then set it up with the shortcode to display products for that categories. But its not working and I made sure I add a product to the product category.
I don't have an cache plugin installed and I have tried everything else nothing seem to work. Quite frustrating! I'm on localhost by the way.
Hi there,
are the products in that Category published?
If an issue can you share a link to your site. You can do so privately by editing the original topic and using the Site URL Field. And we'll take a look.
Yes the products are published. Well the website is still on localhost. I have not uploaded yet. But what is the cause of this please. Though I have a redirection plugin that seem to cache the links just disabled that but its not working.
However, you need to know that one category is working fine displaying products. Only new categories I creating seem not to be picking the product I added to the categories. cache? Can't find any cache plugins here. I'm confused right now
It's really hard to tell if we can't see the issue live.
The theme itself doesn't handle things like this as well as it's all handled by WooCommerce.
I would recommend disabling all plugins to eliminate any conflicts first.
This is the code I'm using
[products limit="6" columns="3" category="category" orderby="id" order="DESC" paginate="true"]
This works for the first category I said works fine. Even without categories it works fine. But I created two new category. Added product to it. But its not working. I just disable the plugins no changes still
Did you replace category="category" with the name of the actual category?
And make sure you are actually using the right quotation mark "".
If not can you try a simpler shortcode like this?
https://docs.woocommerce.com/document/woocommerce-shortcodes/#scenario-5-specific-categories
Yes, of course, I did put the actual category. I tried using the category default pages for the new cateogries. That works fine. But really need to do custom pages. So we can say the problems lie within the new pages probably the shortcode.
So I tried something else. Loading the product category directly on the page and I got this error "Error loading block: Invalid parameter(s): attributes"
Can you check with WooCommerce support first to see if they've seent this issue before?
I would assume the same issue exists if you use a twenty series default theme as well?
cache my friend. Cache ;)
So it's resolved?
Yeah
Glad to hear.
We do try to mention this ;)
https://www.screencast.com/t/7pFlvF2iLy