• Can i have default custom fields for my posts? I mean, i don’t want to create new fields everytime i’ll make a post. I need over 10 default custom fields and it’s boring to fill them up everytime.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter joaodo

    (@joaodo)

    Bump.

    Do you mean you want the same value in 10 default custom fields, or just to have the same 10 fields there to fill in a value each time?

    Once you’ve used a custom field, it stays in the drop down box, so you just need to choose it and add a value.

    Old post, but I have the same question. Or at least: I think I have…

    Once you have used a custom field it stays in the dropdownbox. But its only the KEY that WordPress remembers. It could be cool if there was a way to make the VALUE-field stay aswell.

    And let me explain why: I have a theme that uses custom Fields to show an image on the frontpage. But since I only have about 10 different images (More like icons really) that I use for my theme, it could be cool, if I could just choose them directly in the custom fields without remembering the URL for the image.

    Is there a way to do this?

    Bump

    The way to do it would be to write a plugin. But, that’s not very helpful if you don’t know how to write a plugin for something like this.

    Another way would be to set this kind of stuff within the theme files, but this depends on how you’re using your 10 or so images.

    For example, let’s assume you’re choosing these default images depending on what category the post is in. That’s very easy to do with a few conditional tags.

    There’s also the ‘Viva Image’ plugin that automatically does the whole thumbnail crap for you without having to use custom fields.

    Or, my own Get The Image plugin, that’ll auto-pull the thumbnails for you if you’re interested.

    But, this still won’t help you on the Write Post page when it comes to remembering custom field values.

    Is it possible just to edit some of the php-files in the theme and create some kind of dropdownbox in custom fields?

    Its not a problem if I have to manually edit a file everytime I want to add a new image to the list of images, that I can choose in custom fields

    Is this making any sense at all?

    Bump

    I’ve already told you that you’d have to write a custom plugin for something like this.

    I do a lot of plugin testing and have never seen a plugin that does this. Of course, that doesn’t mean one’s not available; I’ve just never come across one.

    Is it possible just to edit some of the php-files in the theme and create some kind of dropdownbox in custom fields?

    To answer your question — no.

    You’re trying to turn a textarea into a drop-down list, which you can’t do.

    My advice is to start thinking about different ways to use default images than what you’re suggesting.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Default Custom Fields’ is closed to new replies.