user1205935
user1205935

Reputation:

Wordpress custom meta box to include background picture

I am designing a WordPress theme and would like to post recipes. The text (ingredients, etc.) will go into the main post window, but I would like to include a picture, which should become the background picture of the whole window. The usual Upload/Insert includes the picture into the post. Is there any better way of associating a picture to a post? Should I use the Custom Fields for this?

Upvotes: 0

Views: 570

Answers (2)

Maidul
Maidul

Reputation: 418

To make your life easy i recommend a plugin for that The Advanced custom fields

Its very easy to use. You can get full documentation here

This plugin always save my development time. Hope it will help

Upvotes: 1

joshrathke
joshrathke

Reputation: 7774

Check out WP-Alchemy. http://www.farinspace.com/wpalchemy-metabox/

It's incredible. It can be implemented into a plugin, or a theme. I have used it and it works great!

Otherwise, the term you are looking for is "Wordpress Custom Meta Box" throw that in google, and you will get more info than you probably wanted.

If you are more of a wordpress codex junkie, check out the add_meta_box function. http://codex.wordpress.org/Function_Reference/add_meta_box

Upvotes: 0

Related Questions