Letzter Post taucht doppelt auf! Woran liegts?

  • [FONT=Arial]Moin liebes Wordpress Forum,[/FONT]
    [FONT=Arial] [/FONT]
    [FONT=Arial]ich habe ein Problem und hoffe Ihr könnt mir helfen. Wenn Ich bei mir im Blog auf eine Kategorie gehe. Beispiel:[/FONT]


    http://www.waslosinlingen.de/category/kino/
    [FONT=Arial] [/FONT]
    [FONT=Arial]dann taucht der letzte Post den Ich gemacht habe, immer doppelt auf. Hat jemand eine Ahnung woran das liegt? [/FONT]
    [FONT=Arial]Kann mir da vlt jemand helfen? [/FONT]
    [FONT=Arial] [/FONT]
    [FONT=Arial]Gruß[/FONT]

    • 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

  • Also, ich hätte einmal den Code vom Category Template

    Ist der richtig? Ansonsten hätte ich noch .... anzubieten

    Templates


    • 404 Template
      (404.php)
    • Archives Page Template
      (page-archives.php)
    • Authors Lists Page Template
      (page-authors.php)
    • Category Template
      (category.php)
    • Commented Page Template
      (page-withcomment.php)
    • Comments
      (comments.php)
    • Daily Archives Page Template
      (page-daily.php)
    • Footer
      (footer.php)
    • Full Width Page Template
      (page-fullwidth.php)
    • Header
      (header.php)
    • Image Attachment Template
      (image.php)
    • Links Page Template
      (page-links.php)
    • Main Index Template
      (index.php)
    • Monthly Archives Page Template
      (page-monthly.php)
    • Page Template
      (page.php)
    • Search Form
      (searchform.php)
    • Sidebar
      (sidebar.php)
    • Single Post
      (single.php)
    • Subpages Lists Page Template
      (page-subpages.php)
    • Theme Functions
      (functions.php)
    • Weekly Archives Page Template
      (page-weekly.php)
    • Yearly Archives Page Template
      (page-yearly.php)
    • home.php
      (home.php)
    • indomagz-blog.php
      (indomagz-blog.php)
    • indomagz-gallery2.php
      (indomagz-gallery2.php)
    • indomagz-gallery3.php
      (indomagz-gallery3.php)
    • indomagz-magazine.php
      (indomagz-magazine.php)
    • indomagz-news.php
      (indomagz-news.php)
    • legacy.comments.php
      (legacy.comments.php)
    • slider.php
      (slider.php)


    Styles


    • RTL Stylesheet
      (rtl.css)
    • Stylesheet
      (style.css)
    • custom.css
      (custom.css)
    • superfish-rtl.css
      (superfish-rtl.css)
    • superfish.css
      (superfish.css)


    Danke

  • Le Code

    <?php global $indomagz_settings; $temp_query = $wp_query; ?>
    <?php get_header(); ?>

    <div id="content">

    <?php if (is_home() && $indomagz_settings['featured']) require_once(INDOMAGZ_PATH . '/slider.php'); ?>

    <?php if(!is_home()) : ?>
    <?php breadcrumb_trail(); ?>
    <?php endif; ?>

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(__('Index - Top','indomagz')) ) : ?>
    <?php endif; ?>
    <?php $wp_query = $temp_query; ?>

    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); $loopcounter++; ?>
    <div <?php if(function_exists('post_class')) { post_class(); } ?> id="post-<?php the_ID(); ?>">
    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>">
    <?php the_title(); ?></a></h2>
    <div class="entry">
    <?php the_content(__('Continue reading &raquo;','indomagz')); ?>
    </div>
    <div style="clear:both;"></div>
    <?php if(function_exists('the_ratings')) { echo '<p>'; the_ratings(); echo '</p>'; } ?>
    <div class="postmeta">
    <span class="post-author"><?php the_author(); ?></span>
    <span class="post-calendar"><?php the_time(__('F j, Y','indomagz')); ?></span>
    <span class="post-category"><?php the_category(', '); ?></span>
    <?php if(function_exists('the_tags')) : ?>
    <?php the_tags('<span class="post-tag">', ', ', '</span>'); ?>
    <?php endif; ?>
    <span class="post-comment"><?php comments_popup_link(__('No Comments','indomagz'), __('1 Comment','indomagz'), __('% Comments','indomagz')); ?></span>
    <?php if(function_exists('the_views')) {
    echo '<span class="post-view">';
    the_views();
    echo '</span>';
    } ?>
    <?php if(function_exists('wp_email')) {
    echo '<span class="post-email">';
    email_link();
    echo '</span>';
    } ?>
    <?php if(function_exists('wp_print')) {
    echo '<span class="post-print">';
    print_link();
    echo '</span>';
    } ?>
    <?php if ($user_ID) : ?>
    <span class="post-edit"><?php edit_post_link(__('Edit','indomagz'),'',''); ?></span>
    <?php endif; ?>
    </div>
    </div>

    <?php if ($loopcounter==1) : ?>
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(__('Index - Middle','indomagz')) ) : ?>
    <?php endif; ?>
    <?php $wp_query = $temp_query; ?>
    <?php endif; ?>

    <?php endwhile; ?>

    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(__('Index - Bottom','indomagz')) ) : ?>
    <?php endif; ?>
    <?php $wp_query = $temp_query; ?>

    <div class="navigation">
    <?php if(function_exists('wp_pagenavi')) : wp_pagenavi(); else : ?>
    <div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries','indomagz')); ?></div>
    <div class="alignright"><?php previous_posts_link(__('Newer Entries &raquo;','indomagz')); ?></div>
    <hr class="clear"/>
    <?php endif; ?>
    </div>

    <?php else : ?>

    <div class="post sticky">
    <h2><?php _e('Not Found','indomagz'); ?></h2>
    <p><?php _e('Sorry, but you are looking for something that is not here.','indomagz'); ?></p>
    <?php include (INDOMAGZ_PATH . "/searchform.php"); ?>
    </div>

    <?php endif; ?>

    </div><!--/content -->

    <?php $wp_query = $temp_query; ?>
    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

  • Wäre schön, wenn du den Code beim nächsten Mal in code-Tags packst, lässt sich dann einfacher lesen und hebt sich vom restlichen Text eindeutig ab ;). Ich nehme mal stark an, das der Sidebar-Teil dran schuld ist, lösch mal das Stück oben raus:

    PHP
    <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(__('Index - Top','indomagz')) ) : ?>
        <?php endif; ?>

    Die gibt wahrscheinlich nochmal extra den letzten Post aus.

  • Hat leider nicht Funktioniert.

    Kann ich mir leider kaum vorstellen, es sei denn der jeweils letzte wäre in der DB doppelt vorhanden. Hast du den Teil wieder reingemacht oder ist der noch draußen?

    Hy,...
    wenn dann beim Kommenden....


    Quatsch, die Beiträge werden ja immer aktuell aus der DB geholt, hat nix damit zu tun ob sie vor 3 Wochen, Gestern oder Übermorgen geschrieben sind (außer das der von Übermorgen heut noch nicht verfügbar ist ;) ).

  • Puh, in dem Template muss man erstmal durchsehen. Für den Fall, es ist die indomagz-news.php... Jetzt hauts hin. In den anderen Templates (Blog & co...) hast du aber auch so nen Eintrag, erst jetzt gesehen. Falls du die mal nutzt, diesen hier entfernen:

    PHP
    <?php if ($loopcounter==1) : ?>
                <?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(__('Index - Middle','indomagz')) ) : ?>
                <?php endif; ?>
                <?php $wp_query = $temp_query; ?>
                <?php endif; ?>

    direkt vor

    PHP
    <?php endwhile; ?>

    Kannst den User wieder löschen. Das PW hat ich übrigens gleich geändert, wg der Profilnachricht ;)

Jetzt mitmachen!

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