Support » Plugins » Not one Page Navigation Plugin that works!

  • I am not a coder, but if I were, I would make it easy for non coders to use my plugins.

    I have been trying for days to get a page navigation plugin that works! But I’ll damned if the creators just do not know how to tell simple minded people like me how to install their plugins!

    WP-Pagenavi Not much if any help. None of the help that exists works
    simple pagination The instructions are in French
    WP-Paginate No help. No clue for non programmers.

    Can anyone tell me where exactly to put all these functions and calls? I am using the a modified 2010 theme, and I’ve tried just about every locations: loop.php, functions.php, index.php. No luck!

    Hope someone out there has sympathy for a lowly non programmer.

    Barry

Viewing 11 replies - 1 through 11 (of 11 total)
  • I am using the a modified 2010 theme

    what are the modifications? for instance, adding a custom query can break most paginations.

    I’ve tried just about every locations: loop.php, functions.php, index.php.

    what exact code have you tried?

    No luck!

    what does that mean in more details?

    in Twenty Ten, the wp-pagenavi code would get integrated by editing loop.php and by changing these two lines (these occur twice, once near the top, once near the end):

    <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
    		<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>

    for instance to:

    <?php if( function_exists( 'wp_pagenavi' ) { wp_pagenavi(); } else { ?>
    		<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
    		<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
    <?php } ?>

    This is very cool. I thought I was screaming in outer space, and as we all know, “In space no one can here you scream.” Sorry, couldn’t resist that Alien metaphor.

    I’m going to take your kind responses in the order they appeared:

    To ESMI: Were those links supposed to show me that someone had responded? It’s been 6 hours, but that’s no time at all to wait. I just don’t think either of these plugins have any REAL support. At least not WP-Pagenavi. The verdict is still out on WP-Paginate, but I’m pessimistic.

    To alchymyth: Only CSS modifications to the 2010 theme.

    I’ve tried the code that each plugin author provides. Function, call, and CSS. For WP-Pagenavi it’s here:

    How To Build WP-PageNavi Into Your WordPress Theme

    and I think it’s wrong. I said I’m not a coder, but should there be a curly brace after an opening PHP tag, and with no closing PHP tag?

    My question is, if the code was right (and it MAY be, since I am not a coder) where EXACTLY do I place it. I hope you can follow the link because I don’t want to fill up this post window with a whole bunch of code.

    “No luck” isn’t very descriptive, I admit. By “No luck,” I mean there are no page navigation icons created. I don’t get any errors in the code editor, but it just doesn’t work on the page. It’s as if nothing was added.

    As for your suggested code snippet, just to be safe, I did a search and replace to replace the before with the after. When I reloaded the page, I got this:

    Parse error: syntax error, unexpected ‘{‘ in C:\xampp\htdocs\wordpress\wp-content\themes\twentyten\loop.php on line 25

    (This is a local installation on my PC using XAMP)

    This is, also what I mean by “no luck.”;>)

    I thank you all for your help. Unless you can see the error of my ways, I think I’ll wait and see if the WP-pagination author responds to my plea for help. Barring that, can either of you recommend a decent page navigation plugin that a mindless dolt like myself could use?

    Thanks again!

    Barry

    Here’s what I did for WP-Pagenavi, and it’s just exactly what the plugin author tells me to do–

    http://wordpress.org/plugins/wp-pagenavi/installation/

    –I replaced this:

    <?php /* Display navigation to next/previous pages when applicable */ ?>
    <?php if ( $wp_query->max_num_pages > 1 ) : ?>
    <div id=”nav-above” class=”navigation”>
    <div class=”nav-previous”><?php next_posts_link( __( ‘<span class=”meta-nav”>←</span> Older posts’, ‘twentyten’ ) ); ?></div>
    <div class=”nav-next”><?php previous_posts_link( __( ‘Newer posts <span class=”meta-nav”>→</span>’, ‘twentyten’ ) ); ?></div>
    </div><!– #nav-above –>
    <?php endif; ?>

    With this:

    <?php /* Display navigation to next/previous pages when applicable */ ?>
    <?php if ( $wp_query->max_num_pages > 1 ) : ?>
    <?php wp_pagenavi(); ?>
    </div><!– #nav-above –>
    <?php endif; ?>

    Did I make a mistake?

    Barry

    I even tried this non plugin code to no avail:

    Non plugin page navigation

    Maybe I just don’t know what file to plug all this code into.

    I placed the function in functions.php without and then enclosed in PHP tags (neither worked) at the very bottom of the functions.php file. I placed the call at the very bottom of loop.php.

    Should it really be this hard? Isn’t this WordPress stuff supposed to be slightly (I could take slightly) user friendly?

    Barry

    Okay, here’s another navigation plugin that I can’t get to work. If anyone could just PLEASE tell me where this guy means when he says:

    Add <?php wp_paging(); ?> to your theme, after the loop or between the endwhile and else.

    What’s the file???? I’ve tried functions.php, loop.php, index.php. None work. I know it’s me, but is this stuff really this hard?

    Here’s the link to the plugin site:

    WP Paging

    Barry

    When I reloaded the page, I got this:

    Parse error: syntax error, unexpected ‘{‘ in C:\xampp\htdocs\wordpress\wp-content\themes\twentyten\loop.php on line 25

    my mistake – a missed closing bracket; code should have been:

    <?php if( function_exists( 'wp_pagenavi' ) ) { wp_pagenavi(); } else { ?>
    		<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
    		<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
    <?php } ?>

    Here’s what I did for WP-Pagenavi, and it’s just exactly what the plugin author tells me to do–

    what you tried should have worked (appart from an excess closing div) – corrected:

    <?php /* Display navigation to next/previous pages when applicable */ ?>
    <?php if ( $wp_query->max_num_pages > 1 ) : ?>
    <?php wp_pagenavi(); ?>
    <?php endif; ?>

    did the ‘older posts’/’newer posts’ links show before you installed the plugin(s) and changed the code?

    additional standard troubleshooting:
    temporarily deactivate all plugins (apart from the pagination plugin) to see if that chnages anything.

    Dear alchymyth,

    I think I’m giving up on WP Pagenavi, but I wonder if you wouldn’t comment on the following site, that purports to create page navigation without a plugin.

    There are several sites that do, but I’m having that (for me) age old problem, that they just assume I know where to put these darn code snippets!

    There are several sites, but here is the link to the one site I almost understood:

    WordPress Pagination Without a Plugin (WP-PageNavi alternative)

    It clearly states that the code snippet needs to go into the function.php file. That’s good, but does the author mean any old place, or at the bottom? Enclosed, or not enclosed in PHP tags? I don’t know where.

    Where I have the real problem, though, is knowing what he means when he says I must paste:

    <?php if (function_exists(‘wp_corenavi’)) wp_corenavi(); ?>

    into my template. I don’t know what that means! There are over a dozen files in the TwentyTen theme. Which one do I place this call into? I’m assuming, maybe, the page.php, but he may mean the loop.php, or does he mean the single-loop.php? You see where this might confuse a green horn?

    Can you tell me where a call such as this traditionally goes? Is it in the loop? And if so, where the heck IS the loop?

    I’m so sorry to bother you. I see now that WordPress is not meant for non programmers, but I’d still like to try. Thanks for any help.

    Barry

    the code snippet needs to go into the function.php file. That’s good, but does the author mean any old place, or at the bottom? Enclosed, or not enclosed in PHP tags?

    you can add it at the bottom of functions.php, before the ?>(if this exists), not enclosed in extra php tags.

    paste: <?php if (function_exists('wp_corenavi')) wp_corenavi(); ?> into my template

    this is the same as if you would use ‘wp-pagenavi’; it goes into loop.php of Twenty Ten into the already mentioned sections.

    these should look like this after the changes:

    <?php if( function_exists( 'wp_corenavi' ) ) { wp_corenavi(); } else { ?>
    		<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">&larr;</span> Older posts', 'twentyten' ) ); ?></div>
    		<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">&rarr;</span>', 'twentyten' ) ); ?></div>
    <?php } ?>

    back to my question:
    do the ‘older posts’ – ‘newer posts’ links show when you use the unedited theme?

    You’re very patient with me. Thanks! I have since uninstalled pagenavi. Let me reinstall and get back to you.

    Barry

    Thank you, thenk you alchymyth! Now that I know where these code snippets are supposed to go, I’m doing fine. Pagenavi is working! I appreciate you sticking with me, and I will close this topic, but first, may I ask one parting question?

    Lester also says that for multi-part pages, which I think are when you use the <!–nextpage–> shortcode, I must replace this:

    <?php wp_link_pages( … ); ?>

    with this call:

    <?php wp_pagenavi( array( ‘type’ => ‘multipart’ ) ); ?>

    But I did not find <?php wp_link_pages( … ); ?> in loop.php. Would that, perhaps, be in single-loop.php? Sorry, I am not at my home computer, otherwise I would do a site wide search in Dreamweaver.

    Thanks again for your most patient help.

    Barry

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Not one Page Navigation Plugin that works!’ is closed to new replies.