Problem with post-type.php templates
-
Hello,
Perhaps this is a bug, so I’d like to raise it with you guys.
I have about three different post types. As an example:
* The default post type (post)
* Partner
* Property
* HotelI have gave conditionals to
query_posts()
in both index.php and single.php to only handle the default post type (post).For every other post type, I configured a page template (
page-<taxonomy-name>.php
), and each page also has thequery_posts()
configure to return only its related post type. The end result is like this:* /partners/ – for the post type partner
* /properties/ – for the post type property
* /hotels/ – for the post type hotelNow if I type /parter/ or /hotel/, it redirects me to /partners/ or /hotels/ — That is, the custom page I created to display the posts.
However, for some reason, when I type /property/ instead of redirecting me to /properties/ it sends me back to https://www.mysite.com/
I find this very odd since the page templates for each of these post types is basically the same code, including the html layout. The only thing that changes is the CSS classes.
In fact I created these post typs one after another, with pretty much the same values, using gd-taxonomies-tools plugin. I double checked and I left the
rewrite slug
option empty for all of my post types, andrewrite with slug
is set to no for all post types as well.Any ideas what might be wrong? It looks like a bug to me…
- The topic ‘Problem with post-type.php templates’ is closed to new replies.