{"id":10685076,"date":"2018-09-13T14:37:43","date_gmt":"2018-09-13T14:37:43","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/modify-archive\/"},"modified":"2018-09-13T14:37:43","modified_gmt":"2018-09-13T14:37:43","slug":"modify-archive","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/modify-archive\/","title":{"rendered":"Modify archive"},"content":{"rendered":"<p>Hi,<\/p>\n<p>My archive.php category page doesn&#8217;t show the title of the articles.<br \/>\nHow is it possible to display the titles ?<\/p>\n<p>Thank you<\/p>\n<pre><code>&lt;?php\n\/**\n * The template for displaying Archive pages.\n *\n * Learn more: https:\/\/codex.wordpress.org\/Template_Hierarchy\n *\n * @package Suits\n * @since Suits 1.0\n *\/\n\nget_header(); ?&gt;\n\n\t&lt;div id=&quot;primary&quot; class=&quot;content-area&quot;&gt;\n\t\t&lt;div id=&quot;content&quot; class=&quot;site-content&quot; role=&quot;main&quot;&gt;\n\n\t\t&lt;?php if ( have_posts() ) : ?&gt;\n\t\t\t&lt;header class=&quot;archive-header&quot;&gt;\n\t\t\t\t&lt;h1 class=&quot;archive-title&quot;&gt;&lt;?php\n\t\t\t\t\tif ( is_category() ) :\n\t\t\t\t\t\tprintf( __( &#039;Category Archives: %s&#039;, &#039;suits&#039; ), single_cat_title( &#039;&#039;, false ) );\n\n\t\t\t\t\telseif ( is_tag() ) :\n\t\t\t\t\t\tprintf( __( &#039;Tag Archives: %s&#039;, &#039;suits&#039; ), single_tag_title( &#039;&#039;, false ) );\n\n\t\t\t\t\telseif ( is_author() ) :\n\t\t\t\t\t\t\/* Queue the first post, that way we know\n\t\t\t\t\t\t * what author we&#039;re dealing with (if that is the case).\n\t\t\t\t\t\t *\n\t\t\t\t\t\t * We reset this later so we can run the loop\n\t\t\t\t\t\t * properly with a call to rewind_posts().\n\t\t\t\t\t\t *\/\n\t\t\t\t\t\tthe_post();\n\t\t\t\t\t\t\n\t\t\t\t\t\tprintf( __( &#039;Author Archives: %s&#039;, &#039;suits&#039; ), &#039;&lt;span class=&quot;vcard&quot;&gt;&#039; . get_the_author() . &#039;&lt;\/span&gt;&#039; );\n\t\t\t\t\t\trewind_posts();\n\n\t\t\t\t\telseif ( is_day() ) :\n\t\t\t\t\t\tprintf( __( &#039;Daily Archives: %s&#039;, &#039;suits&#039; ), get_the_date() );\n\n\t\t\t\t\telseif ( is_month() ) :\n\t\t\t\t\t\tprintf( __( &#039;Monthly Archives: %s&#039;, &#039;suits&#039; ), get_the_date( _x( &#039;F Y&#039;, &#039;monthly archives date format&#039;, &#039;suits&#039; ) ) );\n\n\t\t\t\t\telseif ( is_year() ) :\n\t\t\t\t\t\tprintf( __( &#039;Yearly Archives: %s&#039;, &#039;suits&#039; ), get_the_date( _x( &#039;Y&#039;, &#039;yearly archives date format&#039;, &#039;suits&#039; ) ) );\n\n\t\t\t\t\telse :\n\t\t\t\t\t\t_e( &#039;Archives&#039;, &#039;suits&#039; );\n\n\t\t\t\t\tendif;\n\t\t\t\t?&gt;&lt;\/h1&gt;\n\t\t\t\t&lt;?php\n\t\t\t\t\t\/\/ Show an optional term description.\n\t\t\t\t\t$term_description = term_description();\n\t\t\t\t\tif ( ! empty( $term_description ) ) :\n\t\t\t\t\t\tprintf( &#039;&lt;div class=&quot;archive-meta&quot;&gt;%s&lt;\/div&gt;&#039;, $term_description );\n\t\t\t\t\tendif;\n\n\t\t\t\t\t\/\/ If a user has filled out their description, show a bio on their entries.\n\t\t\t\t\tif ( is_author() &amp;&amp; get_the_author_meta( &#039;description&#039; ) ) : ?&gt;\n\t\t\t\t\t\t&lt;div class=&quot;archive-meta&quot;&gt;\n\t\t\t\t\t\t\t&lt;p&gt;&lt;?php the_author_meta( &#039;description&#039; ); ?&gt;&lt;\/p&gt;\n\t\t\t\t\t\t&lt;\/div&gt;&lt;!-- .archive-meta --&gt;\n\t\t\t\t\t&lt;?php endif; ?&gt;\n\t\t\t&lt;\/header&gt;&lt;!-- .archive-header --&gt;\n\n\t\t\t&lt;?php \/* The loop *\/ ?&gt;\n\t\t\t&lt;?php while ( have_posts() ) : the_post(); ?&gt;\n\t\t\t\t&lt;?php get_template_part( &#039;content&#039;, get_post_format() ); ?&gt;\n\t\t\t&lt;?php endwhile; ?&gt;\n\n\t\t\t&lt;?php suits_paging_nav(); ?&gt;\n\n\t\t&lt;?php else : ?&gt;\n\t\t\t&lt;?php get_template_part( &#039;content&#039;, &#039;none&#039; ); ?&gt;\n\t\t&lt;?php endif; ?&gt;\n\n\t\t&lt;\/div&gt;&lt;!-- #content --&gt;\n\t&lt;\/div&gt;&lt;!-- #primary --&gt;\n\n&lt;?php get_sidebar(); ?&gt;\n&lt;?php get_footer(); ?&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-10685076","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10685076","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10685076\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10685076"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}