WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
other field types (i.e. time) (4 posts)

  1. baritoneuk
    Member
    Posted 2 years ago #

    I love the concept of the Types plugin and it looks easy to implement. Is there a way of adding more field types? I'm looking at creating an Events custom post type for which there would be some extra custom fields-
    Event start date and time and event end date and time. There is a date field but not a time field. Is it possible to add one?

    http://wordpress.org/extend/plugins/types/

  2. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    Yes. You can add more field types yourself using the new API that we've added since Types 0.9.4. Have a look here for an example (at the bottom of the post):
    http://wp-types.com/2012/01/types-0-9-4-adds-cf-group-display-per-templates-field-api-and-bug-fixes/

    And, don't forget to show your love. Go back to the project page, rate Types and indicate that it's working for you:
    http://wordpress.org/extend/plugins/types/

  3. baritoneuk
    Member
    Posted 2 years ago #

    Fab, this looks great. I assume I add this to my theme's functions.php file? Is there any documentation on this? I'll have a play but I'd love to be able to add a couple of time fields. Would also be great if there was a forum where people could share their examples. I tend to learn by seeing other people's examples.

  4. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    There's some documentation on the first few lines of that PHP file. Yes, the right place to add it is in the theme's functions.php.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags