Das Problem wurde nun erfolgreich gelöst. :)
Vielen Dank für die Unterstützung.
Um schreiben oder kommentieren zu können, benötigen Sie ein Benutzerkonto.
Sie haben schon ein Benutzerkonto? Melden Sie sich hier an.
Jetzt anmeldenHier können Sie ein neues Benutzerkonto erstellen.
Neues Benutzerkonto erstellenDas Problem wurde nun erfolgreich gelöst. :)
Vielen Dank für die Unterstützung.
Das Theme ist Original. Es wurde nichts verändert.
Dein Vorschlag konnte mich leider nicht voranbringen. Es werden immer noch dieselben Artikel dargestellt.
Ich habe jetzt die komplette "index.php" eingefügt, sodass man sich ein besseres Bild machen kann:
<?php get_header(); ?>
<div id="content">
<img src="<?php bloginfo('template_directory'); ?>/images/latestnews.png" alt="latest News" />
<?php query_posts('posts_per_page=3'); if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article class="postem">
<img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=280&h=100&zc=1" alt="" />
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<div class="pmeta">On <?php the_time('n M') ?> <b>//</b> in <?php the_category(', ') ?> <b>//</b> <?php comments_popup_link(__('# 0'), __('# 1'), __('# %')); ?></div>
</article>
<?php endwhile; ?> <?php else : ?> <?php endif; ?>
</div><!-- end #content -->
<div id="sidebar1">
<div id="blackfeatured">
<div class="thepart1b">
<?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts=1&p='.get_option('latestgamingupdates').'&offset=0'); ?>
<?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
<img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=400&h=406&zc=1" alt="" />
<div class="thepart1bwrapper">
<a href="<?php the_permalink() ?>" rel="bookmark"></a>
<div class="thepart1btitle"><a class="thepart1btitlet" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title2('') ?></a> </div>
<div class="thepart1bpost"><?php the_content_limit(184); ?></div> </div>
<?php $c++; endwhile; wp_reset_query(); ?> <div style="clear:both"> </div> </div>
<div class="todays-arw"> <p>Todays Hottest News </p></div>
</div>
<div id="blackfeatured"> </div>
</div><!-- end #l-sidebar -->
<div id="cb"></div> <div id="bodytwofloor">
<div id="leftredh3">
<h3><?php echo get_option('vid-catonetxt'); ?></h3>
<?php query_posts('showposts=3&cat='.get_option('vid-catone').'&offset=0'); if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article class="leftredpost">
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
<img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=146&h=85&zc=1" alt="" />
<?php the_content_limit(183); ?>
<div id="cb"></div>
</article>
<?php endwhile; ?> <?php else : ?> <?php endif; ?> </div>
<div id="rightredh3">
<h3><?php echo get_option('videotxt'); ?></h3>
<?php query_posts('showposts=1&cat='.get_option('vid-cat').'&offset=0'); if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article class="rightredpost">
<img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=285&h=285&zc=1" alt="" />
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</article>
<?php endwhile; ?> <?php else : ?> <?php endif; ?>
<?php query_posts('showposts=1&cat='.get_option('vid-cat').'&offset=1'); if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<article class="rightredpost">
<h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</article>
<?php endwhile; ?> <?php else : ?> <?php endif; ?>
</div>
<div id="cb"></div>
</div>
<div id="third">
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; ?>
<?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts='.get_option('latestgamingupdates').'&cat='.$theme_options["featuredCatID"].'&offset=0'); ?>
<?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
<div class="thirdwrapper">
<a href="<?php the_permalink() ?>" rel="bookmark">
<img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=270&h=155&zc=1" alt="
<?php the_title(); ?>" class="thepart1bimg"> </a>
<div class="thirdbtitle"> <span id="catblock"><?php the_category(' / ') ?></span> <br />
<a href="<?php the_permalink() ?>" rel="bookmark">
<?php the_title(); ?></a>
</div>
<div class="thirdpost">
<?php the_content_limit(250); ?>
</div>
</div>
<?php $c++; endwhile; wp_reset_query(); ?>
</div>
</div>
<?php get_sidebar(); ?>
<div class="pmeta"><?php posts_nav_link(); ?></div>
<?php get_footer(); ?>
Alles anzeigen
Es geht hierbei konkret um die letzten Abschnitte.
Ich habe schon sehr viele ausprobiert, konnte jedoch für mein Problem keine wirkliche Lösung finden...für eine Hilfe wäre ich daher wirklich sehr dankbar.
Ja, das stimmt. Allerdings habe ich das Problem, dass beim "Blättern" auf die nächste Seite immer noch nicht die nächsten zehn Artikel angezeigt werden.
Es werden immer nur dieselben zehn Artikel angezeigt.
Hallo,
ich habe das Problem, dass ich nicht genau definieren kann, wie viele Artikel-Einträge auf der Startseite erscheinen sollen.
Es geht um diesen Code-Abschnitt:
[...]
<div id="third">
<?php $otherFeaturedPost = new WP_Query();$otherFeaturedPost->query('showposts='.get_option('latestgamingupdates').'&cat='.$theme_options["featuredCatID"].'&offset=0'); ?>
<?php while ($otherFeaturedPost->have_posts()) : $otherFeaturedPost->the_post(); ?>
<div class="thirdwrapper">
<a href="<?php the_permalink() ?>" rel="bookmark">
<img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image',true) ?>&w=270&h=155&zc=1" alt="
<?php the_title(); ?>" class="thepart1bimg"> </a>
<div class="thirdbtitle"> <span id="catblock"><?php the_category(' / ') ?></span> <br />
<a href="<?php the_permalink() ?>" rel="bookmark">
<?php the_title(); ?></a>
</div>
<div class="thirdpost">
<?php the_content_limit(250); ?>
</div>
</div>
<?php $c++; endwhile; wp_reset_query(); ?>
</div>
</div>
<?php get_sidebar(); ?>
<div class="pmeta"><?php posts_nav_link(); ?></div>
<?php get_footer(); ?>
Alles anzeigen
Wie muss ich genau den Code anpassen, sodass zum Beispiel nur die zehn neuesten Einträge auf der Startseite zu allen Kategorien erscheinen? Ältere Artikel sollten mit Hilfe der "Page Navigation" erreichbar sind.
Für eure Hilfe wäre ich sehr dankbar.