Viewing 15 posts - 1 through 15 (of 47 total)
Gerry

URL Structure Issue

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

Created: July 22, 2013 at 12:13 pm

  • Mark Fail
    Mark Fail
    July 23, 2013 at 2:55 am

    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.

    https://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.

  • Gerry
    Gerry
    July 23, 2013 at 11:17 am

    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.

  • Richard Bonk
    Richard Bonk
    July 23, 2013 at 11:28 am

    Just have Googled it and found this: https://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

  • Gerry
    Gerry
    July 23, 2013 at 12:14 pm

    Hey Richard,

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

  • Mark Fail
    Mark Fail
    July 23, 2013 at 1:48 pm

    🙂

  • Gerry
    Gerry
    August 7, 2013 at 8:44 am

    Hey guys I did play with the code on https://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.

  • Aaron
    Aaron
    August 7, 2013 at 9:15 am

    To be sure:

    Are you wanting to remove the Post Type Permalink

    or

    The Taxonomy Permalink?

  • Gerry
    Gerry
    August 7, 2013 at 9:27 am

    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/

  • Mark Fail
    Mark Fail
    August 7, 2013 at 1:50 pm

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

  • Aaron
    Aaron
    August 7, 2013 at 1:54 pm

    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.

  • Mark Fail
    Mark Fail
    August 7, 2013 at 1:55 pm

    nice share thanks 🙂

  • Gerry
    Gerry
    August 7, 2013 at 2:01 pm

    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.

  • Gerry
    Gerry
    August 8, 2013 at 7:55 am

    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 https://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.

  • Mark Fail
    Mark Fail
    August 8, 2013 at 10:03 am

    does the plugin author not offer any assistance?

Copyright © 2010-2020 PremiumPress Limited.

secure payments