WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
image/file custom fields only store (4 posts)

  1. 1000camels
    Member
    Posted 2 years ago #

    As far as I can tell, the available custom fields only support storing the url, rather than the attachment ID. This makes custom fields not very useful at all.

    Does anyone have any more information about this? The developers seem set on closing out anyone who doesn't purchase a support option - you can't even read the forums without an account. As has been pointed out, the documentation is sparse.

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

  2. RoamFree
    Member
    Posted 2 years ago #

    I haven't tried the File field type, but the Image field type does let you choose an image using the usual image-selection popup (ie, upload/Media library). But I don't know why you think it is not useful whether a URL or an internal ID is stored, as long as the user can access the image or file.

  3. 1000camels
    Member
    Posted 2 years ago #

    Useful to some. In my environment, the attachment ID is required. The URL includes the domain name and I am moving my data between development and production servers, so the stored image url is not working for me.

    In other custom fields I have worked with, there is an option to choose whether you want to store the URL (which does save time accessing) or the ID (which makes the data more portable).

  4. AmirHelzer
    Member
    Plugin Author

    Posted 2 years ago #

    The complete documentation for different custom fields and their attributes is here:
    http://wp-types.com/documentation/functions/

    A field like you're describing doesn't exist. However, Types lets you extend field types. You might want to try and create such a field yourself.

    Have a look here:
    http://wp-types.com/2012/01/types-0-9-4-adds-cf-group-display-per-templates-field-api-and-bug-fixes/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags