I’ve read a number of articles and tutorials on adding custom content to a WordPress theme. They almost always refer to small bits of data such as telephone numbers or emails that can be easily handled by using the option mechanism in WordPress. This is fine and I’ve managed to implement the same functionality in a number of ways.
My question is;
If I wanted to add an option for the author to have some custom content on the home page – say a banner image, a paragraph of text (that uses the HTML editor) and a link to another page, what would be the most WordPress friendly way of doing this?
I should probably mention that I’m not looking for a how-to or step by step, just opinions!
The best way to do this is using the settings api. A good tutorial for this is on wp.tutsplus, Its quite long. A shorter is from Otto.
It can be quite confusing at the beginning, but it’s not that hard.