• 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:

    Pages:
    1
    

    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: http://wordpress.org/plugins/wp-paginate/faq/

    Generic Code

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

    Adding Parameters

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

    site ref: http://howlingwolfmedia.com/site3/classes/instructors/

    Here is the full markup where it’s being used in instructors template
    http://pastebin.com/BwC5ZV95 and below

    <?php
        /*
        Template Name: Instructors
        */
        ?>
    
        <!DOCTYPE html>
        <html>
        <head>
        <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 {
                left:-65px;
        }
        </style>
    
        </head>
    
        <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>
        </div>
        </div>
    
        <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">
    
        <?php
        $paged = (get_query_var('page')) ? get_query_var('page') : 1;
        query_posts('posts_per_page=6&cat=3&orderby=title&order=ASC&paged=$paged');
        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>
    
        <hr>
        <?php endwhile; ?>
    
        <?php if(function_exists('wp_paginate')) {
            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.