get_stylesheet_directory()
, а не через get_template_directory()
remove_shortcode('shortcode');
add_shortcode('shortcode', 'child_theme_func');
// This will NOT work
$exclude_ids = '1,2,3';
$query = new WP_Query( array( 'post__not_in' => array( $exclude_ids ) ) );
// This WILL work
$exclude_ids = array( 1, 2, 3 );
$query = new WP_Query( array( 'post__not_in' => $exclude_ids ) );