Wer kann mir hlefen den Quelltext so zu modifiezieren das statt vorige Mitteilungen oder nächste Mitteilungen die Seitenzahlen angezeigt werden :
PHP
<?php
if ( !$max_page ) {
if ( isset($max_num_pages) ) $max_page = $max_num_pages;
else {
preg_match('#FROM\s(.*)\sGROUP BY#siU', $request, $matches);
$fromwhere = $matches[1];
$numposts = $wpdb->get_var("SELECT COUNT(DISTINCT ID) FROM $fromwhere");
$max_page = $max_num_pages = ceil($numposts / $posts_per_page);
}
}
if ( !$paged ) $paged = 1;
$nextpage = intval($paged) + 1;
if ( !is_single() && ( empty($paged) || $nextpage <= $max_page ) ) $there_are_next_posts = true;
if ( !is_single() && $paged > 1 ) $there_are_previous_posts = true;
?>
<?php if ( $there_are_next_posts || $there_are_previous_posts ) : ?>
<div class="post">
<?php if ( $there_are_next_posts ) : ?>
<p class="left"><a href="<?php next_posts($max_page) ?>">« vorige Mitteilungen</a></p>
<?php else : // $there_are_next_posts ?>
<p class="left">Keine vorigen Mitteilungen</p>
<?php endif // $there_are_next_posts ?>
<?php if ( $there_are_previous_posts ) : ?>
<p class="right"><a href="<?php previous_posts() ?>">neue Mitteilungen »</a></p>
<?php else : // $there_are_previous_posts ?>
<p class="right">keine neuen Mitteilungen</p>
<?php endif // $there_are_previous_posts ?>
<p> </p>
</div>
<?php endif // $there_are_next_posts || $there_are_previous_posts ?>
Alles anzeigen
http://codex.wordpress.org/Template_Tags/…_pages#Examples
hatte ich mir bereits angesehen aber irgendwie klappt da nicht ...
ich würde gerne das dies so aussieht ( kennt jeder von Google )
[SIZE=-1]Ergebnisseite: 1 2 3 4 5 6 7 8 9 Ältere Seiten[/SIZE]
Danke euch .....