WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Mike
    Member
    Posted 2 years ago #

    Hi,

    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!

    Mike

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. fireproofsocks
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 years ago #

    Hi, Brian. Thanks for your help.

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

    https://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=308&thanks=308&ts=1328032425

    This may have been requested before. See:

    https://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=5

    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:

    https://code.google.com/p/wordpress-custom-content-type-manager/wiki/CustomCustomFields

  4. fireproofsocks
    Member
    Plugin Author

    Posted 2 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
    Member
    Posted 2 years ago #

    My apologies, Everett.

    Thanks again for your help.

    Mike

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic