Support » Plugins and Hacks » Pagination


  • Hi!

    Cool new feature, a must-have for my website (2000+ posts)!

    Little bug found: when you switch from page one to page two here :

    instead of “http://alkos.info/wp/category/padarchive/page/2” the link is “http://alkos.info/wp/category/padarchivepage/2” – one slash is missing.

    However when switching from any subsequent page to another it is fine.

    Also, any idea how to make the page menu appear both on the top and the bottom of thumbnails?



Viewing 9 replies - 1 through 9 (of 9 total)
  • Ok, I solved the first issue by installing this plugin: http://wordpress.org/extend/plugins/permalink-trailing-slash-fixer/

    However, I never had any problem with the lack of the trailing slash before.

    Also, I’ve made the top and bottom nav buttons by changing the following in post-tiles.php :

    return $key_finished.'<ul id=”post-tiles” ‘.$responsive.’>’.$output.”.$pagination;


    return $key_finished. $pagination.'<ul id=”post-tiles” ‘.$responsive.’>’.$output.”.$pagination;

    However I do not like the idea of modyfing the plugin code. Is there any way to do this via CSS?

    Plugin Author ethanhackett


    Interesting. I’ll look into the fix. Thanks for taking extra effort to look into it. When I implemented the Pagination it kept adding an additional /. I had a sneaky suspicion that there might be a reason.

    You moved the pagination correctly. That’s what it would take. I could add the admin control to turn bottom, top, both and then output the pagination at the beginning, end or both. That shouldn’t be too difficult. Maybe I can implement it while I fix the / issue.

    Thanks for using the plugin and alerting me of the bug.

    Plugin Author ethanhackett


    Could you try disabling the trailing slash fixer and replace the following lines of code to see if this solves it for you.

    Replace lines 464 – 469.


    // If the total of pages is greater than one create the pagination
    if ($total_pages > 1){
    $current_page = max(1, get_query_var('paged'));
    $pagination = paginate_links(array(
    'base' => get_pagenum_link(1) . '%_%',
    'format' => 'page/%#%',


    // Fix the url leading slash
    $url = get_permalink();
    $lastchar = substr( $url, -1 );
    if ( $lastchar != '/' ){
       $format = "/page/%#%";
    } else {
       $format = "page/%#%";
    // If the total of pages is greater than one create the pagination
    if ($total_pages > 1){
       $current_page = max(1, get_query_var('paged'));
       $pagination = paginate_links(array(
       'base' => get_pagenum_link(1) . '%_%',
       'format' => $format,

    Basically I’m pulling the urls to see if it ends in a / and then serving up the appropriate format in the paginate_links array.

    Plugin Author ethanhackett


    Do you think the pagination on the top should go above or below the category key? I’m testing it in both and I think it makes more sense above the category key. What are your thoughts?

    Hi Ethan!

    Thank you for your swift response! For my layout it would look better under the category key, but I guess many would have different opinion on this 😉

    Meanwhile I switched back to the old look without your plugin – unfortunately I have no time to work on it :-/

    Plugin Author ethanhackett


    I updated the plugin and made it so that users could choose the placement of the category key. Top, bottom or both.

    Yep, I’ve noticed, thanks a lot!

    Still trying to find some time to work on my layout :->

    Plugin Author ethanhackett


    I’ll leave this post open for a while. Please let me know if you’re able to get it to work.

    Hi Ethan,

    Thank you for this Plugin. Its of great help.

    I’ve faced the same pagination issue.
    (The change mentioned is included in the latest version).

    My blog urls include this ‘paged=2’ string, which is denying with the constant mentioned in the plugin change.. page/2 or /page/2

    Anyhow, I modified the code with corresponding change in the post-tiles.php. Its working fine now.
    Thought of informing. Thanks again.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Pagination’ is closed to new replies.