WordPress.org

Ready to get started?Download WordPress

Forums

WP Catalogue
[resolved] Change for SEF URL (6 posts)

  1. Mister9
    Member
    Posted 1 year ago #

    Thank you for this awesome plugin! It is great.
    I just need to do one final thing to finish the site.

    I need to change the url so it is not http://website.com/wpccategories/mycategory/

    I would like to either remove wpccategories or change it to a more search engine friendly name so it fits the site.

    http://wordpress.org/plugins/wp-catalogue/

  2. Maeve Lander
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, you can change it in the code:

    In wpc-product.php file located in wp-content/plugins/products/ find line 126 where it reads:
    'rewrite' => array ('slug' => 'wpccategories', 'with_front' => false),

    Replace wpcategories in the above line with the name you want to use for your category slug.

    Now find this in line 24:
    'rewrite' => array ("slug" => "wpcproduct ')

    ...and replace wpcproduct with the name you want to use for the product slug.

    Names in line 126 and line 24 must be different.

    Then, just resave your site permalinks via Settings > Permalinks *this bit is important.

    --

    See http://wordpress.org/support/topic/changing-base-slug?replies=7 and http://wordpress.org/support/topic/product-urls?replies=13 for more extended discussion on this topic. Thanks

  3. amitv
    Member
    Posted 12 months ago #

    Thanks for this, but this does not seems working, as through this update url get updated and generating i was looking for but thats throwing to 404 error page

  4. ralphbcn
    Member
    Posted 11 months ago #

    Did anyone sort this out yet? I have the same problem..

  5. esmi
    Forum Moderator
    Posted 11 months ago #

    @ralphbcn: As per the Forum Welcome, please post your own topic. This topic has been resolved.

  6. ralphbcn
    Member
    Posted 11 months ago #

    @esmi thanks, but as also @amtiv indicated it does not work with the indicated instructions - chances are i am doing something wrong but for me it's not working.. anyway i will post a new topic

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags