• Resolved nebuloushomosapien

    (@nebuloushomosapien)


    Hi..

    I’ve recently just started working on word press as the job I have with this new company requires me to.. I’ve been reading alot into wordpress and etc but I’m still lost on permalinks.. A product on the website I’m working on has a URL
    like this:
    http://www.mysite.com/product/vanilla-ice-cream

    but I want it to be like:
    http://www.mysite.com/vanilla-ice-cream

    The “/product/” is always coming in the middle for some reason..Ive tried plugins but nothing worked…I’ve tried permalinks settings in wordpress and changing it to %postname% but that dont work either… all the poking made me realize that this is the Product Slug (from Appearances options) but if I leave it blank it comes up as

    http://www.mysite.com/n-a/vanilla-ice-cream

    please can I get some help?

    Also .htaccess file is

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
Viewing 12 replies - 1 through 12 (of 12 total)
  • Does the site use custom post types?

    Thread Starter nebuloushomosapien

    (@nebuloushomosapien)

    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?

    Thread Starter nebuloushomosapien

    (@nebuloushomosapien)

    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:

    Thread Starter nebuloushomosapien

    (@nebuloushomosapien)

    Thread Starter nebuloushomosapien

    (@nebuloushomosapien)

    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.

    Thread Starter nebuloushomosapien

    (@nebuloushomosapien)

    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.]

    Thread Starter nebuloushomosapien

    (@nebuloushomosapien)

    Sorry MR. Moderator :$

    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).

    Thread Starter nebuloushomosapien

    (@nebuloushomosapien)

    Hmm.. I shall contact them.. Thank you so much for your help! 🙂

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Permalink issues…’ is closed to new replies.