Choosing header to disply using custom-field or taxonomy
-
Hi, how I can use custom-field or taxonomy to display different header.
I dit it with taxonomy using the taxonomy-archive but since I dont use taxnomy-archive anymore I cannot make it happen.
Here my logic, if the page display the custom-field ‘people’ slug ‘joe’ or ‘jeff’ the header should change.
if ( is_singular( ‘joe’ )) {
//
get_header(‘header-for-joe’);
}
elseif ( is_singular( ‘jeff’ )) {
//
get_header(‘header-for-jeff’);
}
else {
//
get_header(‘header-for-everyone-else’);
}
?>Not working ??
Any hint, suggestion ?Thanks.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Choosing header to disply using custom-field or taxonomy’ is closed to new replies.