The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Problem with post-type.php templates (1 post)

  1. pmdci
    Posted 6 years ago #


    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
    * Hotel

    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 slug option empty for all of my post types, and rewrite 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...

Topic Closed

This topic has been closed to new replies.

About this Topic