Custom Field Template
Default Value for textarea? (6 posts)

  1. cybersnac
    Posted 5 years ago #

    I need to apply a custom field that defines a default post thumbnail to a specific category in my theme.

    I use the following code but the default value doesn't populate. Can anyone help please?

    [post-thumb-280x225] // this is the name of the custom field
    type = textfield
    value = http://url_to_image // this is the URL to the image

    I should add that I'm using WordPress 3.1.1

  2. cybersnac
    Posted 5 years ago #

    can anyone tell me if I'm doing this right? or why the default value is not being set if I am doing it right?

  3. Hiroaki Miyashita
    Plugin Author

    Posted 5 years ago #

    Please use default = http:// for the text type.

  4. seanjacob
    Posted 5 years ago #

    I am also trying to get a default/value in my text field but doesn't seem to be working for me am I doing anything wrong? Also should the default appear in the field or be blank but still contains the value.

    label = Summary title
    type = text
    default = In summary
    output = true
  5. seanjacob
    Posted 5 years ago #

    shoot my bad! It will not work for existing posts. Sorry I am a noob to your superb plugin.

  6. cybersnac
    Posted 5 years ago #

    Hiroaki thanks for getting back to me. I'm confused though.
    What do you mean by use default = http:// ?

    I've tried adding that line so that my template looks like this but it doesn't work.

    type = textfield
    value = http://mywebsite.com/pathtosomeimage.jpg
    default = http://

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Field Template
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic