When:
May 4, 2015 @ 1:30 pm
2015-05-04T13:30:00+00:00
2015-05-04T07:45:00+00:00
php
function my_custom_sidebar_display( $sidebar ) {
// Return a different sidebar for custom post type 'resolutions'
if ( is_singular( 'resolutions' ) || is_post_type_archive( 'resolutions' ) ) {
return 'resolutionssidebar';
}
// Return theme defined sidebar area
else {
return $sidebar;
}
}
add_filter( 'wpex_get_sidebar', 'my_custom_sidebar_display' ); ?>