Does the site use custom post types?
How do I check that? Sorry I am pretty new to all this… Although i just read what custom post types are and that would explain the product slug… could you tell me how to change it for both?
Are you using a ecommerce plugin? Woocommerce maybe? If so, check WooCommerce > Settings > Pages. There’s a permalink section also.
Are these posts list under All Posts or under their own Product menu item in the admin area?
The plugins that I have enabled on wordpress are as follows
All in 1 webmaster
breadcrumb Navxt
Compare+
CSV importer
Exec-php
Jquery Lazy Load Plugin
Nofollow for external link
Redirection
Seo Ultimate
Widget Logic
Worpress importer
Wordpress SEO
WP-Optimize
WP-Pagenavi
WP smush.it
Also I have COMPARE on my wordpress as the site I am working on is a price comparison site…
The products are in a category on the website..eg: Vanilla Ice cream would be under Ice creams category…Untill yesterday if I clinked on Ice cream the link would be
http://www.mysite.com/product/ice_cream
Notice how “/Product/” was coming for categories too.. but thanks to plugins I removed the “/Product/” from appearing on the category URL… but for actual products I cant seem to remove it..
I put products on my website through COMPARE+ plugin which is linked with COMPARE
more abt COMPARE:
All the posts are listed in a column called “products” in the admin area..the Post column is there but it has other posts and not products
this part:
$slug = $slug_first_part."/%product_category%/%product_brand%";
is what’s generating it.
In your particular case, take out the /%product_category%/ from that code and you should end up with the url format you want.
Do note that this will impact all products created by this custom post type unless you build in conditional logic to only apply the change to particular products.
Thanks for your reply..
I did what u asked me to but its still the same. 🙁
[Moderator Note: Stop bumping every few minutes! This is a forum – not live chat. No bumping. If it’s that urgent, consider hiring someone.]
I just realized you’re using a paid plugin (Compare+) to generate this. In that case I’d suggest contacting the vendor of the plugin for further assistance (it’s their code that’s generating the URLs and they’d know best how to make the change you’re requesting).
Hmm.. I shall contact them.. Thank you so much for your help! 🙂