I’m making a theme for a client (first time using WordPress), and the client would like to have multiple site “descriptions” to be available. The first one as the main description, and the second one as another block of text in the header which can be changed.
Is there any way to add such functionality to a theme? I can instruct the client to manually edit the .php
files, but I’d like to do something a bit more elegant, like adding an option to the Dashboard.
Thanks!
not 100% sure what you’re after but this may help … i did a site one time and one special set of “pages” on the site were sort of sectionalised ( eg each page consisted of a title and about 4 other “fields” ) …. the way i did it in the back end was to do like dzogchen suggested use custom fields … so i used the title from the wordpress system and then i set up 4 custom fields and then to make it look good for the user what i did was to go to the “screen options” at the top and turn off the visual editor ….. ### actually sorry scratch all that (i’ve left it in because it may actually work for you) #### … i think how i achieved this was that i used a custom post type and did all of what i just said in the programming because the template tags allow you to turn on and off what is seen in the editor …. yes it’s coming back to me now ( sorry but it’s a while back ) …. what you’d need to do that is a combination of custom post types and the settings api … this makes it very slick but warning the settings api is very good, very powerful but takes a bit of working out ( also tip if you are going this way there are two ways of doing settings in wp the new way and the old …. dont get mixed up )
You could have different “descriptions” as a custom field, and the user could enter the description there. there could be a custom description for each page/post, if you like…..
You would need to write some conditional php in header.php to either display the default site description or the custom one if it exists. Look in the codex for get_post_custom_values() for coding specifics.