{"id":15547903,"date":"2022-04-11T14:40:50","date_gmt":"2022-04-11T14:40:50","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/archive-output-as-list-of-page-titles-only\/"},"modified":"2022-04-11T14:40:50","modified_gmt":"2022-04-11T14:40:50","slug":"archive-output-as-list-of-page-titles-only","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/archive-output-as-list-of-page-titles-only\/","title":{"rendered":"Archive output as list of page titles only"},"content":{"rendered":"<p>In a different theme (Penscratch 2) I used this in order to display category archives as a list of page titles (below any category description content). How can I have the same results with generatepress? Its archives.php seems quite different.<\/p>\n<pre><code>&lt;?php\nget_header(); ?&gt;\n\n\t&lt;section id=&quot;primary&quot; class=&quot;content-area&quot;&gt;\n\t\t&lt;main id=&quot;main&quot; class=&quot;site-main&quot; role=&quot;main&quot;&gt;\n\n\t\t&lt;?php if ( have_posts() ) : ?&gt;\n\n\t\t\t&lt;header class=&quot;page-header&quot;&gt;\n\t\t\t\t&lt;?php\n\t\t\t\t\tthe_archive_title( &#039;&lt;h1 class=&quot;page-title&quot;&gt;&#039;, &#039;&lt;\/h1&gt;&#039; );\n\t\t\t\t\tthe_archive_description( &#039;&lt;div class=&quot;archive-description&quot;&gt;&#039;, &#039;&lt;\/div&gt;&#039; );\n\t\t\t\t?&gt;\n\t\t\t&lt;\/header&gt;&lt;!-- .page-header --&gt;\n&lt;ol&gt;\n\t\t\t&lt;?php\n        \/\/ Start the Loop.\n        while ( have_posts() ) : the_post();\n?&gt; \n&lt;li&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt;&lt;\/li&gt;\n&lt;?php endwhile; ?&gt;\n&lt;\/ol&gt;\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\t\t&lt;\/main&gt;&lt;!-- #main --&gt;\n\t&lt;\/section&gt;&lt;!-- #primary --&gt;\n&lt;?php get_sidebar(); ?&gt;\n&lt;?php get_footer(); ?&gt;<\/code><\/pre>\n","protected":false},"template":"","class_list":["post-15547903","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15547903","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\/15547903\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15547903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}