Hey danke an die Infos, bei mir hat alles geklappt (mit bisschen ausprobieren und fummeln)...
Da ich wenig erfahrung mit PHP / HTML usw habe ich kurze Frage:
Wie kann ich die ID vom letztens Eintrag entnehmen?
Ich erkläre das mal kurz: Ich möchte ein Button machen, mit dem man autom. (durch Anker) zum nächsten bzw. vorherigen Eintrag kommt.
Die ID ist ja leider nicht ID: 1843 (-1) / vorheriger post ID 1842 sondern eine autom. generierte... Hat da vielleicht einer ein Vorschlag?
Das wäre echt super...
Hier der Code:
PHP
<div class="post">
<div class="l">
<?php dp_attachment_image(0, 'thumbnail', 'alt="'.$post->post_title.'"'); ?>
<p><strong><a href="<?php echo get_day_link("$arc_year", "$arc_month", "$arc_day"); ?>"><?php the_time('j.F.Y') ?></a></strong></p>
<p><strong>Kategorie:</strong> <?php the_category('; ') ?></p>
<a class="fett" href="#post-<?php echo $post->ID; ?>">RUNTER BUTTON</a>
</div>
<div class="r">
<h2 id="post-<?php echo $post->ID; ?>"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<div class="noimage"><?php the_content(''); ?></div>
<div class="details"><p><a class="readmore" href="<?php the_permalink(); ?>">Weiter zum Post »</a> <?php comments_popup_link('Keine Kommentare', '1 Kommentar', '% Kommentare'); ?></p></div>
</div>
<div class="s">
<p><strong>Tags:</strong> <?php the_tags('', ', ', '') ?></p>
</div>
<div class="break"></div></div>
Alles anzeigen