I want to change header and menu based on what category a post is listed in.
I could duplicate the post and assigned each of the two categories separately but this sounds messy and bleh.
The post/s in this example belong in both "pirtek" and "btcc".
http://www.talkativebroadcasting.co.uk/
but the posts with pirtek need to be styled with custom header etc. (and eventually custom menu...which makes me think perhaps I should just duplicate for easy implementation of a seperate menu?)
What do you think? As it stands my standard header is prioritised every time
<php
if ( has_category('pirtek') ) {
$header = 'http://www.talkativebroadcasting.co.uk/wp-content/uploads/2013/11/cropped-pirtekheader.png'
} else {
$header = 'http://talkativebroadcasting.co.uk/wp-content/uploads/2013/06/cropped-talkativeheader2.png'
}
?>
pirtek
priority.wp_upload_dir
function. After that, why are you callingget_header_image()
if then you use different images urls?