Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Clutch

    (@clutch)

    What database file in my FTP protocol does “index.php file” draw from? Is the duplicate error in there do you think?

    Thread Starter Clutch

    (@clutch)

    Here is my navigation code from within the index.php. Does anything look wrong to you?

    <!– Page Navigation –>
    <?php
    global $wpdb, $posts_per_page, $fromwhere, $matches, $max_num_pages,
    $request, $posts_per_page;
    if (! is_single()) {
    if (get_query_var(‘what_to_show’) == ‘posts’) {
    if ( ! isset($max_num_pages) ) {
    preg_match(‘#FROM (.*) GROUP BY#’, $request, $matches);
    $fromwhere = $matches[1];
    $numposts = $wpdb->get_var(“SELECT COUNT(ID) FROM $fromwhere”);
    $max_num_pages = ceil($numposts / $posts_per_page);
    }
    } else {
    $max_num_pages = 999999;
    }

    if ($max_num_pages > 1) {
    ?>
    <div class=”center-widget”>
    <div class=”bottom-page-nav”>
    <?php posts_nav_link(”, ”,_t(‘« Previous Entries’)); ?>
    |
    <?php posts_nav_link(”, _t(‘Next Entries »’), ”); ?>
    </div>
    </div> <!– center-widget –>
    <?php
    }
    }
    ?>

    Mine screws up when I use the sub categories in the categories side bar. I don’t know why.

    I started having this happen too, but only when I select a subcategory under a parent category within my “Categories” sidebar.

    I don’t understand why that is happeneing.

Viewing 4 replies - 1 through 4 (of 4 total)