{"id":1814,"date":"2013-03-18T19:23:56","date_gmt":"2013-03-18T19:23:56","guid":{"rendered":"https:\/\/de.wordpress.org\/support\/2013\/03\/18\/volle-artikel-im-archiv-statt-der-teaser\/"},"modified":"2013-03-18T19:23:56","modified_gmt":"2013-03-18T19:23:56","slug":"volle-artikel-im-archiv-statt-der-teaser","status":"closed","type":"topic","link":"https:\/\/de.wordpress.org\/support\/topic\/volle-artikel-im-archiv-statt-der-teaser\/","title":{"rendered":"Volle Artikel im Archiv statt der Teaser"},"content":{"rendered":"<p>In meinem Theme (cazuela) ist es anscheinend nicht vorgesehen, dass im Archiv nur die Teaser oder ein Excerpt gezeigt werden (k\u00f6nnen). Die Archiv-Seite listet alle Artikel in voller L\u00e4nge untereinander auf. <\/p>\n<p>Alle Anleitungen, die ich als absoluter php-Laie gelesen und halbwegs verstanden habe, fruchten nicht, da ich die entsprechenden Stellen in der archiv.php nicht finde. Z. B. der Tipp, the_content () durch the_excerpt () zu ersetzen: the_content () erscheint im Archiv-Template nicht. Oder ist ein ganz anderes Template daf\u00fcr zust\u00e4ndig? Oder gar kein Template?<\/p>\n<p>Ist es m\u00f6glich, das Skript entsprechend anzupassen oder evtl. auf ein Template eines anderen Themes zuzugreifen (evtl. dann mit Anpassung aller Artikel-Seiten an die andere Optik)? Oder wei\u00df jemand anderen Rat?<\/p>\n<p>Die Archiv.php sieht so aus:<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8211;<\/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 Cazuela\n * @since Cazuela 1.0\n *\/\n\/*\nTemplate Name: Archives\n*\/\n?&gt;\nget_header(); ?&gt;\n\n\t\t&lt;section id=&quot;primary&quot; class=&quot;content-area&quot;&gt;\n\t\t\t&lt;?php\n\t\t\t\t\/\/ Before Content theme hook callback\n\t\t\t\tthsp_hook_before_content();\n\t\t\t?&gt;\n\t\t\t&lt;?php if ( function_exists(&#039;wp_tag_cloud&#039;) ) : ?&gt;\n\n&lt;li&gt;\n\t\t\t&lt;h2&gt;Popular Tags&lt;\/h2&gt;\n\n&lt;ul&gt;\n\t\t\t&lt;?php wp_tag_cloud(&#039;smallest=8&amp;largest=22&#039;); ?&gt;\n\t\t\t&lt;\/ul&gt;\n&lt;\/li&gt;\n\t\t\t&lt;?php endif; ?&gt;\n\t\t\t&lt;div id=&quot;content&quot; class=&quot;site-content&quot; role=&quot;main&quot;&gt;\n\n\t\t\t&lt;?php if ( have_posts() ) : ?&gt;\n\n\t\t\t\t&lt;header class=&quot;page-header&quot;&gt;\n\n\t\t\t\t\t&lt;h1 class=&quot;page-title&quot;&gt;\n\n\t\t\t\t\t\t&lt;?php\n\n\t\t\t\t\t\t\tif ( is_category() ) {\n\t\t\t\t\t\t\t\tprintf( __( &#039;Category Archives: %s&#039;, &#039;cazuela&#039; ), &#039;&lt;span&gt;&#039; . single_cat_title( &#039;&#039;, false ) . &#039;&lt;\/span&gt;&#039; );\n\n\t\t\t\t\t\t\t} elseif ( is_tag() ) {\n\t\t\t\t\t\t\t\tprintf( __( &#039;Tag Archives: %s&#039;, &#039;cazuela&#039; ), &#039;&lt;span&gt;&#039; . single_tag_title( &#039;&#039;, false ) . &#039;&lt;\/span&gt;&#039; );\n\n\t\t\t\t\t\t\t} elseif ( is_author() ) {\n\t\t\t\t\t\t\t\t\/* Queue the first post, that way we know\n\t\t\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\t\t*\/\n\t\t\t\t\t\t\t\tthe_post();\n\t\t\t\t\t\t\t\tprintf( __( &#039;Author Archives: %s&#039;, &#039;cazuela&#039; ), &#039;&lt;span class=&quot;vcard&quot;&gt;&#039; . get_the_author() . &#039;&lt;\/span&gt;&#039; );\n\t\t\t\t\t\t\t\t\/* Since we called the_post() above, we need to\n\t\t\t\t\t\t\t\t * rewind the loop back to the beginning that way\n\t\t\t\t\t\t\t\t * we can run the loop properly, in full.\n\t\t\t\t\t\t\t\t *\/\n\t\t\t\t\t\t\t\trewind_posts();\n\n\t\t\t\t\t\t\t} elseif ( is_day() ) {\n\t\t\t\t\t\t\t\tprintf( __( &#039;Daily Archives: %s&#039;, &#039;cazuela&#039; ), &#039;&lt;span&gt;&#039; . get_the_date() . &#039;&lt;\/span&gt;&#039; );\n\n\t\t\t\t\t\t\t} elseif ( is_month() ) {\n\t\t\t\t\t\t\t\tprintf( __( &#039;Monthly Archives: %s&#039;, &#039;cazuela&#039; ), &#039;&lt;span&gt;&#039; . get_the_date( &#039;F Y&#039; ) . &#039;&lt;\/span&gt;&#039; );\n\n\t\t\t\t\t\t\t} elseif ( is_year() ) {\n\t\t\t\t\t\t\t\tprintf( __( &#039;Yearly Archives: %s&#039;, &#039;cazuela&#039; ), &#039;&lt;span&gt;&#039; . get_the_date( &#039;Y&#039; ) . &#039;&lt;\/span&gt;&#039; );\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t_e( &#039;Archives&#039;, &#039;cazuela&#039; );\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t?&gt;\n\t\t\t\t\t&lt;\/h1&gt;\n\t\t\t\t\t&lt;?php\n\t\t\t\t\t\tif ( is_category() ) {\n\t\t\t\t\t\t\t\/\/ show an optional category description\n\t\t\t\t\t\t\t$category_description = category_description();\n\t\t\t\t\t\t\tif ( ! empty( $category_description ) )\n\t\t\t\t\t\t\t\techo apply_filters( &#039;category_archive_meta&#039;, &#039;&lt;div class=&quot;taxonomy-description&quot;&gt;&#039; . $category_description . &#039;&lt;\/div&gt;&#039; );\n\n\t\t\t\t\t\t} elseif ( is_tag() ) {\n\t\t\t\t\t\t\t\/\/ show an optional tag description\n\t\t\t\t\t\t\t$tag_description = tag_description();\n\t\t\t\t\t\t\tif ( ! empty( $tag_description ) )\n\t\t\t\t\t\t\t\techo apply_filters( &#039;tag_archive_meta&#039;, &#039;&lt;div class=&quot;taxonomy-description&quot;&gt;&#039; . $tag_description . &#039;&lt;\/div&gt;&#039; );\n\t\t\t\t\t\t}\n\t\t\t\t\t?&gt;\n\t\t\t\t&lt;\/header&gt;&lt;!-- .page-header --&gt;\n\n\t\t\t\t&lt;?php thsp_content_nav( &#039;nav-above&#039; ); ?&gt;\n\n\t\t\t\t&lt;?php \/* Start the Loop *\/ ?&gt;\n\t\t\t\t&lt;?php while ( have_posts() ) : the_post(); ?&gt;\n\n\t\t\t\t\t&lt;div class=&quot;archive-post&quot;&gt;\n\t\t\t\t\t&lt;?php\n\t\t\t\t\t\t\/* Include the Post-Format-specific template for the content.\n\t\t\t\t\t\t * If you want to overload this in a child theme then include a file\n\t\t\t\t\t\t * called content-___.php (where ___ is the Post Format name) and that will be used instead.\n\t\t\t\t\t\t *\/\n\t\t\t\t\t\tget_template_part( &#039;content&#039;, get_post_format() );\n\t\t\t\t\t?&gt;\n\t\t\t\t\t&lt;\/div&gt;&lt;!-- .archive-post --&gt;\n\n\t\t\t\t&lt;?php endwhile; ?&gt;\n\n\t\t\t\t&lt;?php thsp_content_nav( &#039;nav-below&#039; ); ?&gt;\n\n\t\t\t&lt;?php else : ?&gt;\n\n\t\t\t\t&lt;?php get_template_part( &#039;no-results&#039;, &#039;archive&#039; ); ?&gt;\n\n\t\t\t&lt;?php endif; ?&gt;\n\n\t\t\t&lt;?php\n\t\t\t\t\/\/ After Content theme hook callback\n\t\t\t\tthsp_hook_after_content();\n\t\t\t?&gt;\n\n\t\t\t&lt;\/div&gt;&lt;!-- #content .site-content --&gt;\n\t\t&lt;\/section&gt;&lt;!-- #primary .content-area --&gt;\n\n&lt;?php get_sidebar(); ?&gt;\n&lt;?php get_footer(); ?&gt;<\/code><\/pre>\n<p><em>[verwende bitte den &#8218;code&#8216; button, wenn du code hier postest; der obige code ist evtl zerbrochen]<\/em><\/p>\n","protected":false},"template":"","class_list":["post-1814","topic","type-topic","status-closed","hentry","topic-tag-archiv","topic-tag-cazuela","topic-tag-excerpt","topic-tag-teaser","topic-tag-template"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/topic\/1814\/revisions"}],"wp:attachment":[{"href":"https:\/\/de.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=1814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}