Support » Plugins » wp-paginate implementation troubles

  • Trouble implementing plugin in multisite network. I’m trying to use it in a custom theme called ‘custom3’ using a standard query post. It activates fine using the generic code provided and i do see:


    I’m hoping I do not need to edit anything here: wp-paginate/wp-paginate.php or have to edit the functions file as i would like to be able to use this for other sites in network.
    I tried adding the parameters to generic code per these instructions:

    Generic Code

    <?php if(function_exists('wp_paginate')) {
    } ?>

    Adding Parameters

    <?php if(function_exists('wp_paginate')) {
        wp_paginate('nextpage', 'previouspage');
    } ?>

    site ref:

    Here is the full markup where it’s being used in instructors template and below

        Template Name: Instructors
        <!DOCTYPE html>
        <title> <?php bloginfo('name') | wp_title(); ?> </title>
        <link href="<?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" type="text/css"/>
        <style type="text/css">
        .container_11 .pull_65 {
        <body >
        <div class="header_container">
            <div id="header" >
            <div id="tag" ><?php bloginfo('description'); ?></div>
                <div id="title"><?php bloginfo('title'); ?></div>
             </div><!-- header-->      
        </div><!-- header_container-->
        <div id="navbar">
        <div id="navcontainer">
        <div id="menusimple">
        <?php wp_nav_menu( array( 'theme_location'=>'primary-menu',  'container'=>'menusimple', 'container_class'=>'menu',  )); ?>
        <div class="wrapper">
        <div class="container container_11">
        <div class="grid_11" style="margin:8px 12px 12px 20px;" >
        <h1 class="section" span style="font-weight:bold"> Instructors</span></h1>
        <div id="instructors">
        $paged = (get_query_var('page')) ? get_query_var('page') : 1;
        while (have_posts()) : the_post();
        <h4 class="bio" style="font-weight:bold"> <?php the_title() ?> </h4>
        <?php echo get_the_post_thumbnail($page->ID,  array(65,65) ); ?>
        <?php the_content(); ?>
        <p> </p>
        <?php endwhile; ?>
        <?php if(function_exists('wp_paginate')) {
        } ?>
        </div><!-- min container for instructor posts -->
        </div><!-- grid 11 -->
        <div class='clear'> </div>
        </div><!-- container -->
        </div><!-- wrapper -->
        <?php get_footer(); ?>

  • The topic ‘wp-paginate implementation troubles’ is closed to new replies.