getreidemuehlen
-


Hinweise


Antwort
 
LinkBack Themen-Optionen Thema durchsuchen Thema bewerten
Alt 05.10.2007, 09:43   #1
TP-Junior
 
Registriert seit: Jul 2007
fortyniner ist auf einem guten Weg
Unhappy

Wordpress - Latest Posts


Hallo,

Ich habe eine Seite mit Wordpress erstellt, habe aber ein Problem.

In der Index.php ist irgendwie festgelegt dass nur ein Beitrag und dann die latest posts angezeigt werden. ich will dass auf der ersten seite aber 10 posts angezeigt werden.

Wie mache ich das? :-)

Danke für die Hilfe.

Index.php:

<?php get_header(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); $loopcounter++; ?>
<?php if ($loopcounter == 1) : ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink: <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<p class="details_small">
<span class="date"><?php the_time('F j, Y') ?> |
</span><span class="date"><?php the_category(', ') ?>
| <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
</span>
<?php the_content(__('(more...)')); ?>
</p>
</div>
<?php endif; ?>
<?php endwhile; ?>
<?php else : ?>
<div class="post">
<h2>Not found</h2>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
</div>
<?php endif; ?>
<?php if (have_posts()) : ?>
<div>
<h2><?php _e('Latest posts:'); ?></h2>
<ul class="recenti">
<?php while (have_posts()) : the_post(); $loop2counter++; ?>
<?php if ($loop2counter > 1 and $loop2counter < 10 ) : ?>
<li class="sinistro"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> # <?php comments_popup_link(0, 1, '%','no-back',0); ?>
</li><li class="destro"><?php the_time('F j, Y') ?></li>
<?php endif; ?>
<?php endwhile; ?>
<li class="clear">&nbsp;</li>
</ul>
<hr class="clear" />
</div>
<?php endif; ?>
<?php get_footer(); ?>
fortyniner ist offline   Mit Zitat antworten


Alt 05.10.2007, 10:09   #2
TP-Veteran
 
Registriert seit: May 2006
marc22 bringt sich richtig ein
Kannst Du bitte zuerst den Code formatieren?
__________________
...Meine Meinung

1984
marc22 ist offline   Mit Zitat antworten
Alt 05.10.2007, 10:11   #3
TP-Insider
 
Benutzerbild von IMBild
 
Registriert seit: May 2006
Ort: Benztown
IMBild hilft, wo's gehtIMBild hilft, wo's gehtIMBild hilft, wo's geht
Das kannst du im Backend unter Einstellungen > Lesen > Zeige die letzen X Beiträge.

Gruß
__________________
Gruß
<!-- Josie zurück und IMBild -->
_________
W3C XHTML 1.0 VALIDE
IMBild ist offline   Mit Zitat antworten
Alt 05.10.2007, 10:35   #4
TP-Junior
 
Registriert seit: Jul 2007
fortyniner ist auf einem guten Weg
Wie formatiert man den Code denn?

Mein Problem ist dass ich ja gerade nicht in der Lage bin es auf diese Weise einzustellen. Dort ist bei mir eingestellt dass 10 Posts angezeigt werden. Es wird aber irgendwie blockiert.
fortyniner ist offline   Mit Zitat antworten
Alt 05.10.2007, 12:42   #5
TP-Junior
 
Registriert seit: Jul 2007
fortyniner ist auf einem guten Weg
oh ich habe den link vergessen: www.my-concierge.de

Danke für eure Hilfe
fortyniner ist offline   Mit Zitat antworten
Alt 05.10.2007, 16:37   #6
TP-Junior
 
Registriert seit: Jul 2007
fortyniner ist auf einem guten Weg
ich habe es hinbekommen. in index.php habe ich den folgenden text entfern:

$loopcounter++;
<?php if ($loopcounter == 1) : ?>

jetzt gehts :-)

aber ich habe noch eine frage

der header sieht in IE und Firefox unterschiedlich aus. mit firefox ist er um ca 20px nach unten verschoben. woran liegt dass?

es ist kein padding und kein margin eingestellt, das bild ist oben links mit 0px absolut poitioniert.
fortyniner ist offline   Mit Zitat antworten
Antwort

  Aktuelles Thema
  TP Hilfe Forum > Traum-Talk > Webdesign & Co.
Wordpress - Latest Posts Wordpress - Latest Posts
« CS3 aus Übersee | Flugzeug-Homepage-Vorlage! »

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)
 
Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu


Alle Zeitangaben in WEZ +2. Es ist jetzt 15:53 Uhr.

Powered by: vBulletin Version 3.7 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd. / Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.
Traum-Projekt.com | Suchen | Archiv | Impressum | Kontakt | | | Nach oben |



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67