• I found a snippet of code that finally takes care of the missing /archive/ page for custom post_types, and in the comments it was mentioned that cms-press takes care of this.

    Is this the case?

    Meaning if I have post type ‘movies’ can I create a theme folder /movies/ with index.php and single.php in there where it will be automatically picked up so long as I refresh my permalinks?

    https://www.ads-software.com/extend/plugins/cms-press/

Viewing 2 replies - 16 through 17 (of 17 total)
  • Hey All,

    I’m stuck exactly here (as described by AlexLakes):

    Hmmm. I can’t get any of those templates to work. I even made a fresh installation of WP 3.0, tried again, and still not working.

    Let’s assume I have custom content type ‘cars.’ And I want to create an index to view all ‘cars’ posts at https://www.domain.com/cars/. First, I duplicate my theme’s index.php. (I’m using 3.0’s 2010 theme). Then I rename it ‘index-cars.php’.

    Is that it?

    For me, all the proper content displays as it should @ the URLs according to CMSPress per content_type URL setting, but wordpress seems to completely ignore the templating rules. In other words, ‘index.php’ is being used, and all other template files [named in accordance with WP 3 custom post type templating hierarchy] are ignored. index-my_post_type.php does not work. archive-my_post_type.php does not work either.

    any ideas?

    WP 3.0.4
    CMSPress 0.2.0

    more….

    for example, lets consider a custom post type of “car”.

    First, I’ve edited my index.php file and have added:

    if( get_post_type() == 'car' ){
    echo 'car';
    }

    I go to: https://mysite.com/car/

    and

    car

    is echoed out.

    However when replace that snippet with this:

    if( is_archive() ){
    echo 'archive';
    }

    and then I go to https://mysite.com/car/

    nothing is echoed out.

    In other words, WordPress does not seem to think that https://mysite.com/car/ is an archive. And I bet this is why it’s not going and retrieving the proper template file.

    Any ideas?

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘does cms-press take care of the post_type archive permalinks?’ is closed to new replies.