Forums

[Plugin: Custom Field Template] Fiile upload possibility (9 posts)

  1. andreacimatti
    Member
    Posted 1 year ago #

    Is it possible to have a file upload button in the custom fields option?

  2. Hiroaki Miyashita
    Member
    Posted 1 year ago #

    Only in the textarea field, you can use media buttons. You can upload files through media buttons. Set mediaButton = true. The code is something like this.

    [Hidden Thought]
    type = textarea
    rows = 4
    cols = 40
    tinyMCE = true
    mediaButton = true

  3. Dgold
    Member
    Posted 1 year ago #

    neat. that is cool. i will have to try that

  4. F J Kaiser
    Member
    Posted 10 months ago #

    if you just want to upload an image you could change it to:

    [Photo Upload]
    type = textarea
    rows = 1
    cols = 1
    mediaButton = true

  5. F J Kaiser
    Member
    Posted 10 months ago #

    i´ve got a problem. i can get a textarea and file-buttons. selecting some media (im my case an img) is no problem with or without tinymce. i get it displayed in the custom field beneath a write panel, but i doesn´t show up, when calling the form with a shortcode. everything else shows up fine. any idea?

  6. F J Kaiser
    Member
    Posted 10 months ago #

    solved

  7. 1800collect
    Member
    Posted 8 months ago #

    For some reason when I insert images the HTML still shows up. What am I doing wrong? All HTML shows up, but I don't want it to.

    I currently have this in the single.php file

    $gallery_photos = htmlspecialchars(get_post_meta($post->ID, "gallery_photos", true));
    
    echo $gallery_photos;
  8. 1800collect
    Member
    Posted 8 months ago #

    Errr. I see what I did I had htmlspecialchars() wrapped around it. Duh!

  9. deoli
    Member
    Posted 1 month ago #

    In the latest version of this plugin, I see there is the option for a file upload field.

    I've managed to get it to display and I'm able to browse to my local image file, but when I hit Save, the field is not added.

    Anything I'm missing? Here's the lines I've added:

    [Image]
    type = file
    size = 35

Topic Closed

This topic has been closed to new replies.

About this Topic