[wp-hackers] Parameterized Wordpress themes
Robin Adrianse
robin.adr at gmail.com
Thu May 3 21:25:14 GMT 2007
You can use the theme's functions.php, and add submenu pages to the admin
panel much as you'd do from a plugin. See K2 for an example.
As for keeping preferences between upgrades, why not just use wp_options?
On 5/3/07, Elliotte Harold <elharo at metalab.unc.edu> wrote:
>
> How are theme developers handling paramterized themes? For instance. I'd
> like to allow theme users to set any or all of the following:
>
> 1. URL of sidebar image
> 2. Amazon associates ID
> 3. Background color
> 4. Whether or not to show the blogroll
> etc.
>
> I'd like to be able to write a theme that has a nice forms UI for
> supplying data like this; ideally one integrated with the WordPress
> admin panel.
>
> The customization options should be stored outside the theme directory
> so upgrading a theme doesn't nuke preexisting options.
>
> Is this possible short of writing a plugin juts for the use of the theme?
>
> --
> Elliotte Rusty Harold elharo at metalab.unc.edu
> Java I/O 2nd Edition Just Published!
> http://www.cafeaulait.org/books/javaio2/
> http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list