Ive found the answer was that Neglected to put $post in global within my function
I need to get the page id as a variable so I can use it in a switch statement for varying purposes.
I'm using WP 3.2 + Thesis 1.8 - all brand spankingly new.
I've tried all sorts of different code that worked fine in WP 2.9 running a standard theme but no luck.
Any code I use for this will be written in wp-content\themes\thesis_182\custom\cu开发者_运维问答stom_functions.php
Why do you need page_id? You could just check
if ( is_page(<page_id>) ) {
.....
....
}
精彩评论