Custom Content Type Manager
Date / Time Field (5 posts)

  1. Mike
    Posted 4 years ago #


    I've been playing with this a bit today. It's a nice plugin.

    1) Is there a way to include time in the date custom field? (I've selected the MySQL date format, but I don't see a way to configure time.)

    2) Is there a way to sort based on the date / time custom field?

    Thanks for your help!



  2. fireproofsocks
    Plugin Contributor

    Posted 4 years ago #

    Hi Mike. No, currently the date fields are only dates. I don't even think there's been a feature request for a time field (you may file one if you wish: http://code.google.com/p/wordpress-custom-content-type-manager/issues/list).

    A workaround might be to use a dropdown field, or if you're up for it, you can create your own PHP class and implement your own type of custom field (see http://code.google.com/p/wordpress-custom-content-type-manager/wiki/CustomCustomFields).

    Yes, you can sort on the date fields (the MySQL date format is good for sorting). If you use the Summarize Posts stuff in your template files, this can be accomplished by setting the various parameters to the get_posts() function: http://code.google.com/p/wordpress-summarize-posts/wiki/get_posts).

    If you want to sort in the manager, then not quite yet -- I've got custom column stuff being worked on in the dev branch, but the sorting on custom fields is obviously something the WP devs never considered, so the workarounds are tedious, but it should be in there by 0.9.6.

    Hope that helps.

  3. Mike
    Posted 4 years ago #

    Hi, Brian. Thanks for your help.

    I've submitted a feature request. It's issue #308:


    This may have been requested before. See:


    I will try both a drop-down field and attempt creating a custom PHP class.

    Note: the link above to the custom-field class info fails. Here is the correct link:


  4. fireproofsocks
    Plugin Contributor

    Posted 4 years ago #

    Brian? I'm Everett.

    Looks like WP malformatted the link and included the closing parenthesis. Thanks for posting the feature request.

  5. Mike
    Posted 4 years ago #

    My apologies, Everett.

    Thanks again for your help.


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic