hi there,
is there a way to show a global block above a custom post and custom pst archive page, made with cptui?
i tried this code but getting a fatal error
// Right after the header jobs
function add_block_before_the_content_begin() {
if( is_singular('jobs') || is_home() ){
echo do_shortcode('[cs_gb id=930]');
}
}
add_action( 'x_after_masthead_end', 'add_block_before_the_content_begin');
// Right before the footer jobs
function add_block_after_the_content() {
if( is_singular('jobs') || is_home() ){
echo do_shortcode('[cs_gb id=931]');
}
}
add_action( 'x_before_colophon_begin', 'add_block_after_the_content');
jobs is my slug for the custom post. i have to mention that i allready show a global block for the normal post type. but this is a different gb.
credentials in secure note.
thanks in advance