Im-mersion
Member
Posted 1 year ago #
I have a client that will be using WP as a CMS. Is there a more elegant way of editing sidebar content than widgets? I am afraid they will break all the html needed to style them correctly. There will be a list of dates and a list of prices that change for specific pages. I have searched a bit and can't seem to find a solution. Thanks for any help.
IDC
Hi
I have at times used a WordPress post as a repository for sidebar content. I used to create a category called Sidebar and display the posts in it in the sidebar using a secondary query loop. Nowadays I would probably use a custom taxonomy instead to do the same thing. This lets the user edit the sidebar content w/ the same WP editor they edit posts with.
If you need help with a secondary query loop this is a good article:
http://weblogtoolscollection.com/archives/2008/04/13/define-your-own-wordpress-loop-using-wp_query/
I would put the loop code either in sidebar.php or else in a PHP widget.
Im-mersion
Member
Posted 1 year ago #