I'd like someone to test this Wp support forum post and see if i'm correct and that there is indeed a bug in the issue below?
[[LINK href="http://wordpress.org/support/topic/cpt-slug-crashing-my-template-because-it-has-the-word-for-in-it?replies=1"]]http://wordpress.org/support/topic/cpt-slug-crashing-my-template-because-it-has-the-word-for-in-it?replies=1[[/LINK]]
timDesain Nanang answers:
change your cpt from property-for-sale to property_for_sale
or you can add prefix like: a_property_for_sale
20 characters max
it's not a bug.
it's about priority.
you can try this: create a new folder "property-for-sale" inside your wp root folder
then, open new page: http://domain/property-for-sale
:D
pjeaje comments:
I don't want to use underscores. I know how to fix it, i just don't use the word 'for'... is this a bug?
pjeaje comments:
I'm looking for some to test my theory that having a hyphen before and after the word 'for' in a CPT slug crashes the query.
timDesain Nanang comments:
then try to change this line:
'post_type' => mortgage-home-loan,
//to :
'post_type' => 'mortgage-home-loan',
//and
'post_type' => property-for-sale,
//to :
'post_type' => 'property-for-sale',
timDesain Nanang comments:
the difference: see attachment