URL Structure Issue

URL Structure Issue

July 22, 2013
Gerry Gerry
  • Gerry
    Gerry
    Newbie 61 points

    Love the new theme :-)

    Just a issue that really gets me…. /listing-category/ /listing/

    as we all know having a page below reduces the QS – there is really no reason to have /listing-category/ /listing/

    It would be better for seo to have

    domain.com/my-business
    domain.com/category/
    domain.com/tax/

    Mark I know your swamped with bugs and stuff — just point me in the direction so I can try and get rid of this extraneous /listing/ stuff

    Im thinking its class_white_lable_themes.php

    July 22, 2013 at 12:13 pm
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    Hi Gerry

    listing is the taxonomy name (default name) its used by WordPress since all listings are using the ‘listing’ post taxonomy.

    Not sure you can just removed it, there are plugins that will hide it though by rewritting your htaccess file.

    http://wordpress.org/plugins/wp-no-category-base/

    thats one for the old style /category/ you may need to search for one that removed post_type base links.

    July 23, 2013 at 2:55 am
  • Gerry
    Gerry
    Newbie 61 points

    Hey Mark,

    I use the no tags, no sub cat and category base plugins already and they work fine, I was kind of hoping the no category would have removed the ‘listings’. :-(

    I have searching several hours looking for plugins and code hacks to remove the custom post type but to no avail.

    There has to be something out there…. as I hope Im not the only person that would like to see the ‘listings’ custom post type removed from the urls.

    July 23, 2013 at 11:17 am
  • Richard Bonk
    Richard Bonk
    Super Guru 2,739 points

    Just have Googled it and found this: http://vip.wordpress.com/documentation/remove-the-slug-from-your-custom-post-type-permalinks/

    Kind regards,

    Richard
    _____________________________________________________________________
    Wide range of PremiumPress and WordPress Plugins and add-ons
    PremiumPress customisation services and Website Design
    Selection of PremiumPress Child Themes

    July 23, 2013 at 11:28 am
  • Gerry
    Gerry
    Newbie 61 points

    Hey Richard,

    Many thanks…. let me hack and crack and see if it works.

    July 23, 2013 at 12:14 pm
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    :)

    July 23, 2013 at 1:48 pm
  • Gerry
    Gerry
    Newbie 61 points

    Hey guys I did play with the code on http://vip.wordpress.com/documentation/remove-the-slug-from-your-custom-post-type-permalinks/ but maybe … ok not maybe I am for sure doing something wrong. What pages would this hack be added to?

    Also a bit of a concern with all the great dev going on here that any changes made in the core will be outdated in 24 hours.

    Mark any chance of adding this code to your core functions? Please, please, please.

    August 7, 2013 at 8:44 am
  • Aaron
    Aaron
    Super Guru 922 points

    To be sure:

    Are you wanting to remove the Post Type Permalink

    or

    The Taxonomy Permalink?

    August 7, 2013 at 9:15 am
  • Gerry
    Gerry
    Newbie 61 points

    I want to remove the custom post type in the url currently its domain.com/listings/joes-garage/ and I want it to be domain.com/joes-garage/

    August 7, 2013 at 9:27 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    you’ll need to look for a WP plugin that remove the post_type base from the permalink, iv not found one myself.

    August 7, 2013 at 1:50 pm
  • Aaron
    Aaron
    Super Guru 922 points

    http://wordpress.org/plugins/remove-slug-from-custom-post-type/

    Works though you “NEED” to make sure you do not have any conflicting permalinks – same goes for any other category, tag, custom taxonomy.

    August 7, 2013 at 1:54 pm
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    nice share thanks :)

    August 7, 2013 at 1:55 pm
  • Gerry
    Gerry
    Newbie 61 points

    Aaron …. In spanish one would say mil garcias or a thousand thank yous.

    Strange thing I did try this one a while back and it didnt do it and now it does hmmm go figure

    Again thanks a lot much appreciated.

    August 7, 2013 at 2:01 pm
  • Gerry
    Gerry
    Newbie 61 points

    After some testing with the plugin Aaron suggested I did notice some issues:

    the .htaccess file had been changed:

    # BEGIN REMOVE SLUG CUSTOM POST TYPE RULES
    RewriteRule ^listing_type/(.+)/$ /$1\.html [R=301,l]
    RewriteRule ^wlt_message/(.+)/$ /$1\.html [R=301,l]
    # END REMOVE SLUG CUSTOM POST TYPE RULES

    As a 301 redirect this is not cool.

    So i think need to address http://vip.wordpress.com/documentation/remove-the-slug-from-your-custom-post-type-permalinks/

    any help on this mod and how to do it will be appreciated.

    August 8, 2013 at 7:55 am
  • Mark Fail
    Mark Fail
    Super Guru 12,812 points

    does the plugin author not offer any assistance?

    August 8, 2013 at 10:03 am
Viewing 15 posts - 1 through 15 (of 47 total)

Didn't find what you were after?

Chat with us now

or contact our support team