-
AuthorPosts
-
July 20, 2016 at 12:05 am #662731
Hello everyone!
I put in a sidebar with the woocommerce product-category-widget. But when klicking on the categories, there is an error that no products were found.
I found out, that the products get displayed by adding: “?post_type=product” at the end of the URL.
For example:
works: http://www.xyz/shop/category/product/?post_type=product
does not work: http://www.xyz/shop/category/product/Do you know any solution for that problem?
In permalinks there is no way to add “/?post_type=product” AT THE END of the URL?!Thank you!
July 21, 2016 at 9:34 am #663248Does nobody knows a solution?
Just to add “?post_type=product” at the end of each category-url?
Thank you
July 22, 2016 at 11:11 am #663786Hello,
Have you tried disabling all third-party plugins (except WC) to see if it gets fixed? also can you please check if the issue persists with the default WordPress theme activated?
Regards,
JosueJuly 23, 2016 at 12:14 pm #664155I tried to disabling other plugins, but nothing happened and I dont can change the theme, because the whole homepage has been designed to enfold theme.
But it must be possible just to add ““?post_type=product”” at these permalinks?!
Best regards
MarvinJuly 23, 2016 at 8:58 pm #664245Hi,
Does it get fixed if you change the Permalinks settings? (try setting it to default).
Best regards,
JosueJuly 25, 2016 at 11:19 am #664536No, it doesnt get fixed by setting them to default. Is there maybe a .php-file in which I can add “?post_type=product” to the URL?
July 25, 2016 at 7:10 pm #664773Hi,
You could write a .htaccess rule to add that in each URL but i don’t think that’s a good solution to be honest:
RewriteEngine On RewriteCond %{REQUEST_URI} !\.[a-zA-Z0-9]{3,4} RewriteCond %{REQUEST_URI} !/$ RewriteRule ^(.*)$ $1?post_type=productBest regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.
