How to display a specific post type name in a breadcrumb

This is a classic failure to indent code leading to confusion issue. If we reformat your code correctly we see: function the_breadcrumb() { if (!is_home()) { echo “Start » “; echo ‘<a href=”‘; echo get_option(‘home’); echo ‘”>’; bloginfo(‘name’); echo “</a> » “; if (is_category() || is_single() ) { the_category(‘title_li=’); if (is_single()) { echo ” » … Read more

loop over all custom taxonomies for current custom post type and their values

You can make a loop to retrieve the taxonomies: foreach( array(‘genre’, ‘rating’, ‘year’) as $taxo ){ #loop over each taxonomy $terms = get_the_terms( $post->ID , $taxo ); if( $terms && ! is_wp_error( $terms ) ){ echo $taxo . ‘: ‘; $myterm = array(); #get list of term names foreach($terms as $term){ $myterm[] = $term->name; } … Read more

Creating on-page options for Custom Post Type

What you want is a custom meta box. Searching this site will give you plenty of examples as well, but here’s a brief run down. You hook into add_meta_boxes and call, appropriately, add_meta_box. <?php add_action(‘add_meta_boxes’, ‘wpse87567_add_box’); function wpse87567_add_box($post_type) { // $post_type the “page” on which the `add_meta_boxes` action is being fired // It could be … Read more