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)
I 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 the
query_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 hotel
Now 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 http://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 slugoption empty for all of my post types, and
rewrite with slugis 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.