FilipD
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Strange. tried it again with mu-plugins and it works.
Thx for the help guys.
Thx Angelo!
But unfortunately it isn’t going to work that way, i’m afraid.
For example:
this is what I want to have:
$string = '<div class="navigation">'; $string .= ($page>1 && $startPage != 1) ? '<a class="prev page-numbers" href="'.str_replace($placeholder,1,$link).'" title="1"><strong>1</strong></a> ' : ''; if($page == 2){ $string .= ' <a class="prev page-numbers" href="'.$base_link.$base_querystring.'" title="2">«</a> '; }elseif($page > 2){ $string .= ' <a class="prev page-numbers" href="'.str_replace($placeholder,$page-1,$link).'" title="'.($page-1).'">«</a> '; }This is what it normally is:
$string .= ' <strong><span class="page-numbers current">'.$i.'</span></strong>'; }elseif($i=='1'){ $string .= ' <a class="page-numbers" href="'.$base_link.$base_querystring.'">'.$i.'</a> '; }else{ $string .= ' <a class="page-numbers" href="'.str_replace($placeholder,$i,$link).'">'.$i.'</a> '; }Too much stuff to string replace.
So I was wondering if I could change the function in a different way than to add a filter in functions.php (+ that I don’t always have to change the code again, if I update the plugin).
I have WP-paginate for all my pagination and I want to make the EM pagination look similar. Therefor I don’t want ‘>’ and ”>>’ but ‘»’ and the last page number.
1 2 3 » 11
instead of
1 2 3 > >>
Viewing 3 replies - 1 through 3 (of 3 total)