Types 0.9.4 Adds CF Group Display per Templates, Field API and Bug Fixes

   Amir

January 26, 2012

Types 0.9.4 lets you display custom fields exactly where they’re needed. Now, we can choose which templates require which groups and display just there.

Displaying Custom Field Groups for Content with Specific Templates

Let’s say that you’re using standard WordPress Pages for your homepage, and Features page. Also, maybe you need some special custom fields for both of them. There’s no point in showing these fields for all other pages, right?

Types 0.9.4 solves this problem. Now, you can tell a custom field group where to display. This includes:

  • Post type
  • Taxonomy
  • Template

Go to the group edit to see these new options.

Display filtering for custom field groups

If you select more than one display criteria, you can also choose if you require all criteria, or any (AND / OR).

In the ‘content templates’ list, you’ll see both PHP templates and Content Templates (if you’re using Views). The Content Templates let you create templates right from within the WordPress GUI, without coding.

New – Types Field API

This version of Types makes it possible and easy to add your unique custom field types to Types.

This is still considered an experimental feature and we’re looking for feedback on it. To see how it works, download this example fields extension file, which adds a simple Google Maps field to Types.

types-register-example.php.zip

Bug Fixes

Besides this major new feature, we’ve also included a number of bug fixes in Types 0.9.4.

  • Better support for Windows servers, fixing a number of path join issues
  • Menu position bug, in conjunction with some theme / plugins Javascript
  • Synchronize between posts/taxonomy assignment
  • Added thumbnail support even for themes that don’t use thumbnails
  • Corrected character encoding issues in XML export and import
  • Fixed URL rewrite rules for custom post types

We all hope that you’re enjoying Types. In the next releases will keep adding more features, many of which have been suggested in our forum and post comments. Your help and support helps Types improve and mature!

 

Comments 22 Responses

  1. Awesome progress guys (and girls?)!

    The ‘Types’ plugin is looking great. Can’t wait for the repeatable fields / field groups. Any timeline on their integration?

    A couple of quick questions about the ‘Views’ plugin:

    Performance – Are the templates it generates more process-intensive than hand rolling your own?

    Cache – Does it work with W3 Cache or WP Super Cache plugins

    SEO – Does it work with Yoast’s SEO plugin?

    Keep up the good work. It’s very much appreciated!

    • What you want to get from Repeater fields (but way way better) is coming in the next release. We’re aiming for 3 weeks from now.

      Our own sites (this an wpml.org) use WP SEO and W3TC (and yes, Types and Views too).

      Types templates are very efficient in terms of DB access.

  2. Nice to see functionalities from my wishlist being implemented step by step. I can’t wait for repeater field – I’m curious what you have in mind.

    Great work – thank you.

  3. Oh how great would this be if it was supported in wordpress Multi-site!!!!!!

    I have a dozen blogs (and growing) and they all need exactly the same post types, custom fields…and it is killing me all the exporting and importing with each change.

    any solutions coming up?

    • It’s on our todo list. WP Multisite doesn’t really like to share information between sites. It’s possible and we can add it, but it’s not the ‘normal’ way multisite is intended to work.

  4. Hi Amir!
    I’m sorry but i failed to find the contact form, so I ask here.
    I like your plugin and we want to buy it, but there is a problem. When we add custom post type we need to add in russian, but it is “Letters, numbers, spaces or underscores only please”…
    Can you help us, because we can’t buy without this fix.

  5. Really silly q.. what do we do with the types-register-example.php.zip above in order to try it out/use it??

    Thanks
    Bronwyn

    • You should unzip and open it. First, read it and see that you understand. There’s a bit of documentation at the top of the file.

      Then, to create your own field types, you can edit that file with your functionality. Put it in the theme folder and include from functions.php.

  6. It would be great if one could change the type of existing custom fields (ex., from “Radio” to “Select,” or from “Multiple lines” to “WYSIWYG”).

    And the ability to control if radio buttons are being displayed horizontally or vertically would be nice too. (Vertically is the only option right now, which occupies more visual space in the backend in many cases.)

    • You can change the type of existing fields. Go to Types->Settings for that. We’re also going to add a way for you to create custom field displays using your own HTML. It’s going to take a few weeks, but is on our todo list.

      • Oh, that’s cool. Didn’t know it’s possible. (Note: In my backend that menu is called “Custom Fields Control” instead of “Settings”.)

        Also great to know about the upcoming custom field displays!

        BTW, above you offered a file to download, test and provide feedback on. (Unfortunately, like Bronwyn I don’t know what to do with that file, therefore I can’t give you feedback this time; sorry.)

        Anyway, does that mean that, in a future version, there will be a way for us to enter Latitude and Longitude values in a “Map” custom field and then have a Google map being displayed in the frontend, perhaps with some customization included (ex., no position marker)? That would be awesome because that’s something I need for my upcoming project and… it could make me become a happy customer of yours. 😉

        Thanks!

        • I got the label wrong. Unzip the file that you downloaded. At the top, there’s an explanation of how to use it.

          And right, in the near future we’ll also add dedicated fields for things such as Google maps.

          • Could you check the types-register-example.php.zip file?

            It appears to be missing a closing ?> at the end. The last <?php opens at wpcf_admin_ajax_footer but there is no closing to that tag.

  7. I have Types Version 0.9.4.2 and the page “Custom Types and Taxonomies” in admin turned blank, displaying only the title. What can I do?

    • Thanks Amir,
      I turned on WP debugging (with define(‘WPV_LOGGING_STATUS’, ‘info’); I got no output in the console) and there aren’t wp-types related errors.

      I checked in my test server and it is working, It happened after I moved the site to production. Checked the db, it’s ok.

      • Right. You need to enable PHP error logging. There’s probably a PHP issue that will show up in the PHP error log file. That page explains how to do that too.

        • Finally I got the log working, this is the output:
          [07-Mar-2012 15:52:28 UTC] PHP Fatal error: Call to undefined function wpcf_admin_ctt_list() in /var/www/html/intranet/wp-content/plugins/types/admin.php on line 235

          Thanks ,
          Andy