'Referenzen', 'singular_name' => 'Referenz', 'menu_name' => 'Referenzen', 'parent_item_colon' => '', 'all_items' => 'Alle Referenzen', 'view_item' => 'Referenz ansehen', 'add_new_item' => 'Referenz hinzufügen', 'add_new' => 'Neue Referenz', 'edit_item' => 'Referenz bearbeiten', 'update_item' => 'Update Referenz', 'search_items' => '', 'not_found' => '', 'not_found_in_trash' => '', ); $rewrite = array( 'slug' => 'referenz', 'with_front' => true, 'pages' => true, 'feeds' => true, ); $args = array( 'labels' => $labels, 'supports' => array( 'title', 'editor', 'excerpt', 'thumbnail', ), 'taxonomies' => array('category'), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'show_in_nav_menus' => true, 'show_in_admin_bar' => true, 'menu_position' => 8, 'can_export' => true, 'has_archive' => true, 'exclude_from_search' => false, 'publicly_queryable' => true, 'rewrite' => $rewrite, 'capability_type' => 'page', ); register_post_type( 'referenz', $args ); } add_action( 'init', 'ah_custom_post_type', 0 ); register_nav_menus( array( 'Navi' => 'Navigation', ) ); register_sidebar( array( 'name' => 'KeyFacts', 'id' => 'KeyFacts', 'description' => 'Tragen Sie hier Key Facts ein. Auch weitere Textfelder können hinzugefügt werden ...', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); register_sidebar( array( 'name' => 'Links', 'id' => 'Links', 'description' => 'Tragen Sie hier den Text für LINKS & DOWNLOADS ein ...', 'before_widget' => '
  • ', 'after_widget' => '
  • ', 'before_title' => '

    ', 'after_title' => '

    ', ) ); function the_breadcrumb() { if (!is_home()) { if (is_category() || is_single()) { the_category('title_li='); if (is_single()) { echo " » "; the_title(); } } elseif (is_page()) { $ancestors = get_ancestors( get_the_ID(), 'page' ) ; $i = count( $ancestors ) ; while ( $i > 0 ) { $page_data = get_page( $ancestors[$i-1] ) ; echo ' '.$page_data->post_title.' » ' ; $i-- ; } echo the_title(); } } } } ?>