ID, $value, true ); if ( ! empty( $field ) ) { return is_array( $field ) ? stripslashes_deep( $field ) : stripslashes( wp_kses_decode_entities( $field ) ); } else { return false; } } function jabbadu_asin_add_meta_box() { add_meta_box( 'asin-asin', __( 'ASIN', 'asin' ), 'jabbadu_asin_html', 'post', 'side', 'default' ); } add_action( 'add_meta_boxes', 'jabbadu_asin_add_meta_box' ); function jabbadu_asin_html( $post) { wp_nonce_field( '_asin_nonce', 'asin_nonce' ); ?>


'Hier kommen alle Produkte rein - Diesen Text kannst du in Beiträge -> Kategorien bearbeiten', 'slug' => 'produkt' ) ); } add_action( 'after_setup_theme', 'jabbadu_insert_category' ); //Gets post cat slug and looks for single-[cat slug].php and applies it add_filter('single_template', create_function( '$the_template', 'foreach( (array) get_the_category() as $cat ) { if ( file_exists(get_template_directory() . "/single-{$cat->slug}.php") ) return get_template_directory() . "/single-{$cat->slug}.php"; } return $the_template;' ) );