WordPress.org

Ready to get started?Download WordPress

Forums

wpPaginate (19 posts)

  1. francesca
    Member
    Posted 8 years ago #

    hello :)
    I installed wpPaginate and it's just what I was looking for. But I encountered a problem because the page that needs to be paginated is called news.php and not index.php.
    And when one of the pagination number is clicked, the URL is: http://www.domain.it/news.php/index.php?paged=2 and it's not correct. Can you help? Thanx :)

  2. Kafkaesqui

    Posted 8 years ago #

    WpPaginate is getting this from the get_pagenum_link() function in WordPress. To *fix* it, you'll have to do a tiny edit to the WP source.

    Open wp-includes/template-functions-links.php in a text editor. Around line 375, you, you'll see

    function get_pagenum_link($pagenum = 1){

    Several lines down look for this:

    $index = 'index.php';

    Change it to:

    $index = $qstr;

    That's it.

    Note: Always backup source files before editing, and comment your changes for future reference.

  3. francesca
    Member
    Posted 8 years ago #

    Thanx a lot

  4. bs-markup
    Member
    Posted 8 years ago #

    Hi. I've got a problem with this plugin, too. The pagination doesn't work for me. I was searching hours for a fix, but didn't find any solution to the problem.

    For example my Standards Section. It shows four pages. But navigating doesn't work. Klicking on the link displays "Sorry, no results..."

  5. RadMod
    Member
    Posted 8 years ago #

    Hey, BS-Markup ---- I went to your site and it seems you fixed your pagination problem. How's about posting the fix here?

  6. francesca
    Member
    Posted 8 years ago #

    Hello :)
    I'm using WP Paginate but I don't like the fact that the pagination results this way (for example in the first page):

    1 | ... | 4 | 5 | 6

    What if I need to have always all the page numbers?

    Thanx a lot :)

  7. LifeinJersey
    Member
    Posted 8 years ago #

    I would imagine on this line of the code:

    function wpPaginate($paginateAfterNposts = '', $pageNavDivider = ' | ', $paginateHome = FALSE, $briefnavigation = TRUE, $navpad = 6) {

    You would change the $navpad = 6 to whatever number you see fit, perhaps 999 if you want to show a list of all your page numbers.

    I have not tested this theory but it might work :)

  8. Mark (podz)
    Support Maven
    Posted 8 years ago #

    You might want to know that the wp-paginate plugin - as it is written now - is apparently causing a large number of database queries. While this does not seem to add much to page rendering time, it does add to load, and that is not a good thing.
    Reading this could be useful:
    http://wordpress.org/support/topic/35279?page=1#post-200196

    I'm not saying it's a bad plugin or that you should not use it - only that there are some concerns and should your site slow, it could well be the culprit.

  9. francesca
    Member
    Posted 8 years ago #

    In the meanwhile I solved turning FALSE the $briefnavigation in any case:


    if ($num_of_pages > $turnOnBriefNavWhenOver) {
    $briefnavigation = FALSE;
    } else {
    $briefnavigation = FALSE;

    Before it was


    if ($num_of_pages > $turnOnBriefNavWhenOver) {
    $briefnavigation = TRUE;
    } else {
    $briefnavigation = FALSE;

  10. francesca
    Member
    Posted 8 years ago #

    Thanx Podz for the informations, I'm reading

  11. bs-markup
    Member
    Posted 8 years ago #

    "Hey, BS-Markup ---- I went to your site and it seems you fixed your pagination problem. How's about posting the fix here?"

    Shame over me. It was the .htaccess. I still used the old one. I changed it and fixed.

  12. snoogly
    Member
    Posted 8 years ago #

    This is a nice plugin, but I can't get it to work with pages on which posts are listed in alphabetical order.

  13. Andrew Jacob Johnson
    Member
    Posted 8 years ago #

    I couldn't get the pagination to work when browsing within a category. It looks normal on the front page, but only on the front page. Any suggestions?

  14. Lester Chan
    Member
    Posted 8 years ago #

    is this plugin where you can navigate between posts?

    Is it somethind like this:
    Pages (163) : [1] 2 3 » ... Last »

    WordPress 1.5 Plugin: WP-PageNavi 1.00 - Download
    Adds a page navigation with paging elements to your WordPress.

    Example: <A href="http://www.lesterchan.net/">here. Right at the bottom of the page.

  15. lynx
    Member
    Posted 8 years ago #

    Could it be, you copied the wrong link? I get WP-Polls-Plugin if i download...

    This seems to be the correct page Download Plugin... or visit this page:
    http://www.lesterchan.net/others/downloads.php?id=11 or for a overview this one:

    http://www.lesterchan.net/others/downloads.php

  16. lynx
    Member
    Posted 8 years ago #

    By the way: I used the WP-Paginate of Jennifer, but it produces some problems with large Categories... the WP-Pagenavi is blazing fast. :-)
    Great Plugin!

  17. Lester Chan
    Member
    Posted 8 years ago #

    ops it is my bad =)

  18. Daisyhead
    Member
    Posted 8 years ago #

    I have a question on how to use this plugin on my archive pages. My main archive page (http://daisyhead.org/archives/ is a WP page, created by a page template.

    What I want to do is add the wpPaginate tags to my category archive pages and my monthly archive pages so if you click on a category the posts in that particular category are paginated. Same thing with the montly archives. If you click on a month, all posts in that month will be paginated.

    So far I've yet to figure out how to do this. The plugin works great on my main index page, but not in my archive pages. Can anyone offer any help?

  19. antonskey
    Member
    Posted 8 years ago #

    does anyone know if this works on wp2.0?

Topic Closed

This topic has been closed to new replies.

About this Topic