Anischt automatisch anpassen

  • Hallo,
    ich habe folgendes Problem:

    Ich nutze seit ca 5 Tagen erst Wordpress und mir wird unten ein Archiv angezeigt: Mai
    Jedoch werden auch alle aktuellen Beiträge noch auf der Seite angezeigt.

    Ich habe dann eben einen Testbeitrag erstellt und gedacht, dass dann die alten Einträge in das Archiv verschoben werden, aber das ist leider nicht so.

    Ich würde es gerne wiefolgt haben:
    - Alte Einträge sind nur noch im Archiv zu sehen
    - Auf der normalen Seite soll nur der letzte Artikel stehen und alle anderen im Archiv /
    oder das ganze wenigstens nach dem Monat sortiert.

    Wie kann ich dieses denn hinbekommen?
    Liegt es ggf. an der Einstellung der Seiten? Habe nur eine Seite.

    Unter diesem Link findet Ihr mein Blog.

    Besten Dank
    Benjamin-DO

    • Anzeige

    Hallo!

    Wenn du gerade an deiner Website arbeitest oder dein aktuelles Hosting überdenkst: Wir betreiben mit NetzLiving eine Hosting-Plattform, die speziell auf Performance, Sicherheit und einfache Verwaltung ausgelegt ist.

    • ✔️ Schnelle Ladezeiten (optimiert für WordPress & Co.)
    • ✔️ Deutsche Server & DSGVO-konform
    • ✔️ Persönlicher Support (kein 0815-Ticket-System)

    Mehr erfahren

  • such mal in deinem template...


    PHP
    <?php if (have_posts()) : ?>

    und füg ober halb dazu

    PHP
    <?php query_posts($query_string . 'showposts=1'); ?>
  • Hallo,
    also entweder bin ich zu blöd oder den Code gibt es nicht.
    Ich habe folgende Dateien durchsucht:
    %pfad%/wp-content/index.php
    %pfad%/wp-content/themes/Dynamic-Vision/index.php
    %pfad%/wp-content/themes/Dynamic-Vision/page.php

  • [FONT=Arial]<?php get_header(); ?>[/FONT]
    [FONT=Arial]<div id="content">[/FONT]
    [FONT=Arial]<?php if (have_posts()) :?>[/FONT]
    [FONT=Arial]<?php $postCount=0; ?>[/FONT]
    [FONT=Arial]<?php while (have_posts()) : the_post();?>[/FONT]
    [FONT=Arial]<?php $postCount++;?>[/FONT]
    [FONT=Arial]<div class="entry entry-<?php echo $postCount ;?>">[/FONT]
    [FONT=Arial]<div class="entrytitle">[/FONT]
    [FONT=Arial]<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s'), get_the_title()) ?>"><?php the_title(); ?></a></h2>[/FONT]
    [FONT=Arial]</div>[/FONT]
    [FONT=Arial]<div class="entrybody">[/FONT]
    [FONT=Arial]<?php the_content(__('weiterlesen').' &raquo;'); ?>[/FONT]
    [FONT=Arial]</div>[/FONT]

    [FONT=Arial]<div class="entrymeta">[/FONT]
    [FONT=Arial]<div class="postinfo">[/FONT]
    [FONT=Arial]<p class="info">Autor: <span class="author"><?php the_author() ?></span> | Erstellt am: <?php the_time(__('F jS, Y')) ?> | <span class="comments"><?php comments_popup_link('0 Kommentare', '1 Kommentar', '% Kommentare'); ?></span></p>[/FONT]
    [FONT=Arial]</div>[/FONT]
    [FONT=Arial]</div>[/FONT]

    [FONT=Arial]</div>[/FONT]
    [FONT=Arial]<div class="commentsblock">[/FONT]
    [FONT=Arial]<?php comments_template(); ?>[/FONT]
    [FONT=Arial]</div>[/FONT]
    [FONT=Arial]<?php endwhile; ?>[/FONT]
    [FONT=Arial]<div class="navigation">[/FONT]
    [FONT=Arial]<div class="alignleft"><?php next_posts_link('&laquo; '. __('Previous Entries')) ?></div>[/FONT]
    [FONT=Arial]<div class="alignright"><?php previous_posts_link(__('Next Entries').' &raquo;') ?></div>[/FONT]
    [FONT=Arial]</div>[/FONT]

    [FONT=Arial]<?php else : ?>[/FONT]
    [FONT=Arial]<h2><?php _e('Not Found'); ?></h2>[/FONT]
    [FONT=Arial]<div class="entrybody"><?php _e('Sorry, but you are looking for something that isn\'t here.'); ?></div>[/FONT]
    [FONT=Arial]<?php endif; ?>[/FONT]

    [FONT=Arial]</div>[/FONT]
    [FONT=Arial]<?php get_sidebar(); ?>[/FONT]
    [FONT=Arial]<?php get_footer(); ?>[/FONT]


    "" Der Smilie ist natürlich Code ""

  • Mhm nur was ich nicht verstehe ist, wieso mein Editor das dann nicht mit "Suchen" gefunden hat und ich hab es einfach überlesen.

    Noch einen schönen Abend und
    Danke schön

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!