felixkarlsson
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: PaginationHey!
I use this:
<?php $totalposts = $wp_query->found_posts; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $per_page = get_query_var('posts_per_page'); $last_page = ceil($totalposts / $per_page); if($last_page > $paged) { next_posts_link('< '); } else { echo '< ';} echo "<strong>" .$paged. "</strong>"; if($paged > 1) { previous_posts_link(' >'); } else { echo ' >';} ?>
Forum: Fixing WordPress
In reply to: Pagination in archive problem!Any ideas? ??
Forum: Fixing WordPress
In reply to: PaginationThat’s exactly what I want! ??
But I use the next link first, so I go back to earlier entries with “<” ??Thanks a lot!
You’re my hero ??Felix Karlsson
Forum: Fixing WordPress
In reply to: PaginationI really need to solve this people, any suggestions?
Thanks
Felix Karlsson
Forum: Fixing WordPress
In reply to: PaginationOh, but I don’t want it like that. ??
I just want “< number >”
number = The page that you’re at
The arrows are the next-link and previous-link.And even though there is no next/previous link, there should be an unclickable arrow.
Don’t know how to explain it better.
Ex. <1>
Thanks
Felix Karlsson
Forum: Fixing WordPress
In reply to: PaginationWeird, it doesnt work? :S
Forum: Fixing WordPress
In reply to: PaginationCan you elaborate that?
I can’t see how that would solve the problem, sorry.Thanks!
Felix Karlsson
Forum: Fixing WordPress
In reply to: PaginationAnyone?
Forum: Fixing WordPress
In reply to: PaginationNo sorry, those can’t help me.
Because I just want one left arrow, and one right arrow.
(Or i don’t want, but my client does…)And even if there’s no “Next page”, I want the arrow to still be there, but not as a link.
So the thing I need is some function that will find out if there is a “next link” or “previous link”…Thanks!
Felix Karlsson
Forum: Fixing WordPress
In reply to: Pagination//Some code here that will find out if there is newer entries... <?php next_posts_link('<') ?> <?php if(!empty($_GET["paged"])) { echo '<strong>'.$_GET["paged"].'</strong>'; } else { echo "<strong> 1 </strong>"; } ?> //Some code here that will find out if there is privious entries... <?php previous_posts_link('>') ?>
Forum: Fixing WordPress
In reply to: Comment redirectAnyone?
Forum: Fixing WordPress
In reply to: Comments page at index – redirecting:'(
Forum: Fixing WordPress
In reply to: Comments page at index – redirectingAnybody?
Forum: Fixing WordPress
In reply to: Comments page at index – redirectingDesperate need of help! Please help me! ??
Forum: Fixing WordPress
In reply to: Links To Other Websites In A PostingJust like this comment form, there’s a box with the text “link”, click that one, and you’ll probably figure the rest out by yourself ??