http://www.ramonfincken.com/permalink/topic216.html I want to have my sidebar on my posts, but not my pages... but wordpress looks at pages and posts the same, so I thought I could give the sidebar a display:none css tag on the homepage and all other PAGEs as opposed to posts. >> Sure, its not that hard. Note: I haven't tested this code, a reference can be found over here: http://codex.wordpress.org/Function_Reference/get_post_meta On the edit post/page below your textarea you can enter a custom value enter: ( example, I presume you only use positive numbers in the code below, otherwhise remove " || intval($mybodyid) == 0 " ) mybodyid with value: 15 Note: the "mybodyid" will show up in a dropdown after you have entered it once Now edit your template, page.php or single.php (post) To GET the actual value use this PHP code ID, 'mybodyid', true); // Default? if(!isset($mybodyid) || empty($mybodyid) || intval($mybodyid) == 0) { $mybodyid = 'defaultid'; // Or use a number here } ?> Right now we have or bodyid, OR a default value. The only thing you have to do right now is to "show" this somewhere like this:
Yadayada
this will show:
Yadayada
OR in the default case
Yadayada