WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Template
Custom fields for uploading a image? (3 posts)

  1. banica
    Member
    Posted 1 year ago #

    Im currently making a site where people can post and put thumbnails on their posts. My site uses image_value for the thumbnail but users have to upload them using the wordpress uploader then copy the link in the field. Is there a way just to add a button so they can upload it and the link value goes it "image_value"

    [image_value]
    type = text
    size = 60
    label = Картинка:

    http://wordpress.org/extend/plugins/custom-field-template/

  2. Hiroaki Miyashita
    Member
    Plugin Author

    Posted 1 year ago #

    Use the file type.

    [image_value]
    type = file
    relation = true

    Also, you can output the image easily.

    [cft key=image_value image_size=thumbnail]
  3. banica
    Member
    Posted 1 year ago #

    Thank you so much for this. For the output of the image im using timthumb on my theme and i dont really know how to change it lol.

    EDIT: Is there a way for the custom field to be the link to the image after its uploaded? My entire site generates thumbnails from links to the images.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.