我想在自定义帖子类型“job”存档页中显示“state”。现在我的存档页只有标题和摘录。你能告诉我如何修改这个“内容作业”吗。php文件?
p、 我的职位类型是“工作”,分类法是“国家”。加州或纽约将被列入“州”分类学“下划线基础”是主题名。
<?php
/**
* @package underscoresfoundation
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( sprintf( \'<h1 class="entry-title"><a href="%s" rel="bookmark">\', esc_url( get_permalink() ) ), \'</a></h1>\' ); ?>
<?php if ( \'post\' == get_post_type() ) : ?>
<div class="entry-meta">
<?php underscoresfoundation_posted_on(); ?>
<?php the_terms( $post_id, $state, $before, $sep, $after ); ?>
</div><!-- .entry-meta -->
<?php endif; ?>
</header><!-- .entry-header -->
<?php if ( is_search() || is_archive()|| is_category() || is_tag() ) : // Only display Excerpts for Search ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content">
<?php
/* translators: %s: Name of current post */
the_content( sprintf(
__( \'Continue reading %s <span class="meta-nav">→</span>\', \'underscoresfoundation\' ),
the_title( \'<span class="screen-reader-text">"\', \'"</span>\', false )
) );
?>
<?php
wp_link_pages( array(
\'before\' => \'<div class="page-links">\' . __( \'Pages:\', \'underscoresfoundation\' ),
\'after\' => \'</div>\',
) );
?>
</div><!-- .entry-content -->
<?php endif; ?>
</article><!-- #post-## -->