İlgili Kod
/**
* Template part for displaying episodes terms
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package Seven
*/
$type = is_page_template( 'pages/template-episodes.php' ) ? 5 : 4;
$paged = isset($wp_query->query['paged']) ? $wp_query->query['paged'] : get_query_var('paged');
$episodes = get_terms( tr_args( $type, $paged ) );
if( !empty ( $episodes ) ) {
?>
- >
-
term_id, 'tr_id_post', true) ) ); ?>
term_id, 'air_date', true)!=''){ ?>
term_id, 'air_date', true))); ?>
foreach( $episodes as $episode ) {
$term_link_episode = get_term_link( $episode->term_id );
if ( is_wp_error( $term_link_episode ) ) {
continue;
}
?>