WordPress Business Themes › Forums › Responsive Themes › Directory Theme › 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
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
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.
thats one for the old style /category/ you may need to search for one that removed post_type base links.
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.
Just have Googled it and found this: http://vip.wordpress.com/documentation/remove-the-slug-from-your-custom-post-type-permalinks/
Wide range of PremiumPress and WordPress Plugins and add-ons
PremiumPress customisation services and Website Design
Selection of PremiumPress Child Themes
Many thanks…. let me hack and crack and see if it works.
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.
To be sure:
Are you wanting to remove the Post Type Permalink
The Taxonomy Permalink?
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/
you’ll need to look for a WP plugin that remove the post_type base from the permalink, iv not found one myself.
Works though you “NEED” to make sure you do not have any conflicting permalinks – same goes for any other category, tag, custom taxonomy.
nice share thanks
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.
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.
does the plugin author not offer any assistance?
Submit your feature requests to our ideas board and it could be included in a future theme update.
or contact our support team