post_type )->labels->singular_name; } else { $title = get_post_type_object( $post->post_type )->label; } return $title; } /** * Print archive link * * @since 1.0.0 */ function audiotheme_fourteen_archive_link() { global $post; $post_type = get_post_type(); $link = get_post_type_archive_link( $post_type ); if ( 'audiotheme_track' == $post_type ) { $link = get_permalink( $post->post_parent ); } ?> 'ID', 'orderby' => 'post_count', 'order' => 'DESC', 'who' => 'authors', ) ); } // Display page content before contributor list. audiotheme_fourteen_contributor_page_content(); foreach ( $contributor_ids as $contributor_id ) : $post_count = count_user_posts( $contributor_id ); // Move on if user has not published a post (yet). if ( empty( $member_ids ) && ! $post_count ) { continue; } ?>
post_content ) : ?>