Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Custom Taxonomies with Pagination getting 404, Page Not Found WordPress

  • SOLVED

For several custom taxonomies I am using taxonomy.php to show a list of posts. It works fine without pagination. And I can show the first page of the pagination but page 2 gets at 404, page not found.
In other words http://www.haringkids.com/lesson_plans/?curriculum=art works but http://www.haringkids.com/lesson_plans/?curriculum=art&paged=2 goes to "page not found". (If you go to these pages, you will see some var_dumps, just ignore them.)

Some of the code related to paging comes from:
http://wpquestions.com/question/show/id/701

It seems to me the problem is not exactly with the pagination but once "paged=2" is added to the url, WP is not using taxonomy.php

Anyway. I am stymied. Any help would be much appreciated. Thanks

Here is my code:


<?php
/**
* The template for displaying Category Archive pages.
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/
?>

<?php get_header();

$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );
$taxonomy = get_taxonomy($term->taxonomy);
?>

<div id="container">
<div id="content" role="main">
<h1 class="page-title"><?php
printf( __( '%s', 'twentyten' ), '<a href="/lesson_plans/' . $taxonomy->query_var . '">' . $taxonomy->labels->name . ':</a> ' . $term->name);
?></h1>
<?php
$category_description = category_description();
if ( ! empty( $category_description ) )
echo '<div class="archive-meta">' . $category_description . '</div>';
?>

<?php
global $paged, $wp_query, $wp;
$args = wp_parse_args($wp->matched_query);
if ( !empty ( $args['paged'] ) && 0 == $paged ) {
$wp_query->set('paged', $args['paged']);
$paged = $args['paged'];
}

$temp = $wp_query;
$wp_query= null;

$wp_query = new WP_Query();
$args_2 = array(
'is_paged => true',
'paged' => $paged,
'posts_per_page' => 12,
$taxonomy->query_var => $term->slug
);

$wp_query->query($args_2);
?>

<?php
while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
<div id="post-<?php the_ID(); ?>" <?php post_class() ?>>
<h2 class="toc_title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<div class="entry-summary">
<?php if(has_post_thumbnail()): ?>
<a href="<?php the_permalink(); ?>">
<?php the_post_thumbnail('small-thumbnail', array('class' => 'alignleft', 'title' => trim(strip_tags($post->post_title)), 'alt' => trim(strip_tags($post->post_title))));
?>
</a>
<?php endif; ?>

<?php
if(get_post_meta($post->ID, "_dwdescription_value", $single = true) != "") : ?>
<p><?php echo get_post_meta($post->ID, "_dwdescription_value", $single = true);?></p>

<?php endif; ?>

</div><!-- .entry-summary -->
<div class="entry-utility">
</div><!-- .entry-utility -->
</div><!-- #post-## -->
<?php endwhile; ?>

<div class="navigation">
<div class="alignleft"><?php previous_posts_link('&laquo; Previous') ?></div>
<div class="alignright"><?php next_posts_link('More &raquo;') ?></div>
</div>
<?php $wp_query = null; $wp_query = $temp; ?>
</div><!-- #content -->
</div><!-- #container -->

<?php get_sidebar(); ?>
<?php get_footer(); ?>

Answers (5)

2010-08-05

wjm answers:

Daniel,
first we need to debug your request. And that is to understand what rewrite rule is being applied.

1) please save this file in your theme folder (i.e. the same folder as your functions.php is located)
http://wordpress.pastebin.com/gvMDP8sN
name it "debug.php"

2) add this line at the end of your "functions.php" file
require( get_stylesheet_directory() . '/debug.php' );

3) reload the page. View its source code and paste here or to pastebin.com what you get around the line with "<!-- DEBUG INFO:"

looking forward to hearing from you.}
-wjm


wjm comments:

do you page wp_pagenavi installed?


wjm comments:

if you havent uploaded the file, use this version of debug.php instead
http://wordpress.pastebin.com/xdE2wiEF


Daniel Wiener comments:

Here is the debug info.

I have several custom taxonomies. This one is taxonomy - Subject, term - Exhibition. It seems to me it is the same difference. Also if you go to the site and on the 404 page I have some var_dumps if that will give you any helpful info.

I am not using wp_pagenavi.

Thanks.

Daniel


<!-- DEBUG INFO:
Active Template:
/users/home/haring/domains/haringkids.com/web/public/lesson_plans/wp-content/themes/lesson_plans/taxonomy.php
-->
<!--
matched_rule: subject/([^/]+)/?$
matched_query: index.php?subject=$matches[1]
matched_query (evaluated): subject=exhibition
WP_Rewrite Object
(
[permalink_structure] => /%category%/%postname%
[use_trailing_slashes] =>
[category_base] =>
[tag_base] =>
[tag_structure] =>
[author_base] => author
[search_base] => search
[comments_base] => comments
[feed_base] => feed
[comments_feed_structure] =>
[front] => /
[root] =>
[index] => index.php
[matches] =>
[rules] => Array
(
[curriculum/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?curriculum=$matches[1]&feed=$matches[2]
[curriculum/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?curriculum=$matches[1]&feed=$matches[2]
[curriculum/([^/]+)/page/?([0-9]{1,})/?$] => index.php?curriculum=$matches[1]&paged=$matches[2]
[curriculum/([^/]+)/?$] => index.php?curriculum=$matches[1]
[age_grade/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?age_grade=$matches[1]&feed=$matches[2]
[age_grade/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?age_grade=$matches[1]&feed=$matches[2]
[age_grade/([^/]+)/page/?([0-9]{1,})/?$] => index.php?age_grade=$matches[1]&paged=$matches[2]
[age_grade/([^/]+)/?$] => index.php?age_grade=$matches[1]
[subject/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?subject=$matches[1]&feed=$matches[2]
[subject/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?subject=$matches[1]&feed=$matches[2]
[subject/([^/]+)/page/?([0-9]{1,})/?$] => index.php?subject=$matches[1]&paged=$matches[2]
[subject/([^/]+)/?$] => index.php?subject=$matches[1]
[materials/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?materials=$matches[1]&feed=$matches[2]
[materials/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?materials=$matches[1]&feed=$matches[2]
[materials/([^/]+)/page/?([0-9]{1,})/?$] => index.php?materials=$matches[1]&paged=$matches[2]
[materials/([^/]+)/?$] => index.php?materials=$matches[1]
[institutions/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?institutions=$matches[1]&feed=$matches[2]
[institutions/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?institutions=$matches[1]&feed=$matches[2]
[institutions/([^/]+)/page/?([0-9]{1,})/?$] => index.php?institutions=$matches[1]&paged=$matches[2]
[institutions/([^/]+)/?$] => index.php?institutions=$matches[1]
[location/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?location=$matches[1]&feed=$matches[2]
[location/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?location=$matches[1]&feed=$matches[2]
[location/([^/]+)/page/?([0-9]{1,})/?$] => index.php?location=$matches[1]&paged=$matches[2]
[location/([^/]+)/?$] => index.php?location=$matches[1]
[duration/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?duration=$matches[1]&feed=$matches[2]
[duration/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?duration=$matches[1]&feed=$matches[2]
[duration/([^/]+)/page/?([0-9]{1,})/?$] => index.php?duration=$matches[1]&paged=$matches[2]
[duration/([^/]+)/?$] => index.php?duration=$matches[1]
[.*wp-atom.php$] => index.php?feed=atom
[.*wp-rdf.php$] => index.php?feed=rdf
[.*wp-rss.php$] => index.php?feed=rss
[.*wp-rss2.php$] => index.php?feed=rss2
[.*wp-feed.php$] => index.php?feed=feed
[.*wp-commentsrss2.php$] => index.php?feed=rss2&withcomments=1
[dont-delete-these-pages/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[dont-delete-these-pages/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[dont-delete-these-pages/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[dont-delete-these-pages/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[dont-delete-these-pages/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(dont-delete-these-pages)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(dont-delete-these-pages)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(dont-delete-these-pages)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(dont-delete-these-pages)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(dont-delete-these-pages)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(dont-delete-these-pages)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[download-feedback-form/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[download-feedback-form/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[download-feedback-form/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[download-feedback-form/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[download-feedback-form/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(download-feedback-form)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(download-feedback-form)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(download-feedback-form)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(download-feedback-form)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(download-feedback-form)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(download-feedback-form)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[advanced-search/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[advanced-search/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[advanced-search/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[advanced-search/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[advanced-search/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(advanced-search)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(advanced-search)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(advanced-search)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(advanced-search)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(advanced-search)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(advanced-search)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[links/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[links/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[links/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[links/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[links/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(links)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(links)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(links)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(links)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(links)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(links)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[duration/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[duration/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[duration/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[duration/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[duration/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(duration)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(duration)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(duration)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(duration)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(duration)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(duration)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[home/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[home/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[home/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[home/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[home/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(home)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(home)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(home)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(home)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(home)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(home)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[get-a-free-poster/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[get-a-free-poster/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[get-a-free-poster/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[get-a-free-poster/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[get-a-free-poster/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(get-a-free-poster)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(get-a-free-poster)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(get-a-free-poster)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(get-a-free-poster)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(get-a-free-poster)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(get-a-free-poster)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[feedback-questions/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[feedback-questions/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[feedback-questions/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[feedback-questions/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[feedback-questions/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(feedback-questions)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(feedback-questions)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(feedback-questions)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(feedback-questions)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(feedback-questions)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(feedback-questions)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[submit-projects-proposals/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[submit-projects-proposals/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[submit-projects-proposals/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[submit-projects-proposals/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[submit-projects-proposals/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(submit-projects-proposals)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(submit-projects-proposals)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(submit-projects-proposals)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(submit-projects-proposals)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(submit-projects-proposals)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(submit-projects-proposals)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[help/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[help/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[help/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[help/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[help/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(help)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(help)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(help)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(help)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(help)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(help)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[visual-aids/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[visual-aids/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[visual-aids/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[visual-aids/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[visual-aids/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(visual-aids)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(visual-aids)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(visual-aids)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(visual-aids)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(visual-aids)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(visual-aids)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[teacher-mailing-list-sign-up/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[teacher-mailing-list-sign-up/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[teacher-mailing-list-sign-up/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[teacher-mailing-list-sign-up/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[teacher-mailing-list-sign-up/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(teacher-mailing-list-sign-up)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(teacher-mailing-list-sign-up)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(teacher-mailing-list-sign-up)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(teacher-mailing-list-sign-up)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(teacher-mailing-list-sign-up)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(teacher-mailing-list-sign-up)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[keith-haring-biography/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[keith-haring-biography/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[keith-haring-biography/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[keith-haring-biography/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[keith-haring-biography/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(keith-haring-biography)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(keith-haring-biography)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(keith-haring-biography)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(keith-haring-biography)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(keith-haring-biography)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(keith-haring-biography)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[other-resources/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[other-resources/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[other-resources/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[other-resources/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[other-resources/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(other-resources)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(other-resources)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(other-resources)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(other-resources)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(other-resources)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(other-resources)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[recommended-book-list/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[recommended-book-list/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[recommended-book-list/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[recommended-book-list/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[recommended-book-list/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(recommended-book-list)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(recommended-book-list)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(recommended-book-list)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(recommended-book-list)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(recommended-book-list)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(recommended-book-list)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[institutions/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[institutions/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[institutions/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[institutions/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[institutions/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(institutions)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(institutions)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(institutions)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(institutions)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(institutions)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(institutions)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[location/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[location/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[location/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[location/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[location/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(location)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(location)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(location)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(location)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(location)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(location)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[titles/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[titles/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[titles/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[titles/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[titles/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(titles)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(titles)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(titles)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(titles)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(titles)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(titles)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[teachers/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[teachers/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[teachers/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[teachers/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[teachers/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(teachers)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(teachers)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(teachers)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(teachers)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(teachers)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(teachers)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[curriculum/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[curriculum/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[curriculum/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[curriculum/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[curriculum/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(curriculum)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(curriculum)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(curriculum)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(curriculum)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(curriculum)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(curriculum)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[age_grade/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[age_grade/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[age_grade/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[age_grade/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[age_grade/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(age_grade)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(age_grade)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(age_grade)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(age_grade)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(age_grade)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(age_grade)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[materials/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[materials/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[materials/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[materials/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[materials/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(materials)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(materials)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(materials)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(materials)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(materials)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(materials)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[subject/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[subject/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[subject/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[subject/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[subject/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(subject)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(subject)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(subject)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(subject)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(subject)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(subject)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[about/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[about/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[about/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[about/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[about/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(about)/trackback/?$] => index.php?pagename=$matches[1]&tb=1
[(about)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(about)/(feed|rdf|rss|rss2|atom)/?$] => index.php?pagename=$matches[1]&feed=$matches[2]
[(about)/page/?([0-9]{1,})/?$] => index.php?pagename=$matches[1]&paged=$matches[2]
[(about)/comment-page-([0-9]{1,})/?$] => index.php?pagename=$matches[1]&cpage=$matches[2]
[(about)(/[0-9]+)?/?$] => index.php?pagename=$matches[1]&page=$matches[2]
[feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]
[(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]
[page/?([0-9]{1,})/?$] => index.php?&paged=$matches[1]
[comment-page-([0-9]{1,})/?$] => index.php?&page_id=192&cpage=$matches[1]
[comments/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]&withcomments=1
[comments/(feed|rdf|rss|rss2|atom)/?$] => index.php?&feed=$matches[1]&withcomments=1
[comments/page/?([0-9]{1,})/?$] => index.php?&paged=$matches[1]
[search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?s=$matches[1]&feed=$matches[2]
[search/(.+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?s=$matches[1]&feed=$matches[2]
[search/(.+)/page/?([0-9]{1,})/?$] => index.php?s=$matches[1]&paged=$matches[2]
[search/(.+)/?$] => index.php?s=$matches[1]
[category/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
[category/(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
[category/(.+?)/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&paged=$matches[2]
[category/(.+?)/?$] => index.php?category_name=$matches[1]
[tag/(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
[tag/(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?tag=$matches[1]&feed=$matches[2]
[tag/(.+?)/page/?([0-9]{1,})/?$] => index.php?tag=$matches[1]&paged=$matches[2]
[tag/(.+?)/?$] => index.php?tag=$matches[1]
[author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
[author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?author_name=$matches[1]&feed=$matches[2]
[author/([^/]+)/page/?([0-9]{1,})/?$] => index.php?author_name=$matches[1]&paged=$matches[2]
[author/([^/]+)/?$] => index.php?author_name=$matches[1]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&feed=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]&paged=$matches[4]
[([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&day=$matches[3]
[([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]
[([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&feed=$matches[3]
[([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]&paged=$matches[3]
[([0-9]{4})/([0-9]{1,2})/?$] => index.php?year=$matches[1]&monthnum=$matches[2]
[([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&feed=$matches[2]
[([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$] => index.php?year=$matches[1]&feed=$matches[2]
[([0-9]{4})/page/?([0-9]{1,})/?$] => index.php?year=$matches[1]&paged=$matches[2]
[([0-9]{4})/?$] => index.php?year=$matches[1]
[.+?/[^/]+/attachment/([^/]+)/?$] => index.php?attachment=$matches[1]
[.+?/[^/]+/attachment/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[.+?/[^/]+/attachment/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[.+?/[^/]+/attachment/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[.+?/[^/]+/attachment/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(.+?)/([^/]+)/trackback/?$] => index.php?category_name=$matches[1]&name=$matches[2]&tb=1
[(.+?)/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&name=$matches[2]&feed=$matches[3]
[(.+?)/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&name=$matches[2]&feed=$matches[3]
[(.+?)/([^/]+)/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&name=$matches[2]&paged=$matches[3]
[(.+?)/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?category_name=$matches[1]&name=$matches[2]&cpage=$matches[3]
[(.+?)/([^/]+)(/[0-9]+)?/?$] => index.php?category_name=$matches[1]&name=$matches[2]&page=$matches[3]
[.+?/[^/]+/([^/]+)/?$] => index.php?attachment=$matches[1]
[.+?/[^/]+/([^/]+)/trackback/?$] => index.php?attachment=$matches[1]&tb=1
[.+?/[^/]+/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[.+?/[^/]+/([^/]+)/(feed|rdf|rss|rss2|atom)/?$] => index.php?attachment=$matches[1]&feed=$matches[2]
[.+?/[^/]+/([^/]+)/comment-page-([0-9]{1,})/?$] => index.php?attachment=$matches[1]&cpage=$matches[2]
[(.+?)/feed/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
[(.+?)/(feed|rdf|rss|rss2|atom)/?$] => index.php?category_name=$matches[1]&feed=$matches[2]
[(.+?)/page/?([0-9]{1,})/?$] => index.php?category_name=$matches[1]&paged=$matches[2]
[(.+?)/comment-page-([0-9]{1,})/?$] => index.php?category_name=$matches[1]&cpage=$matches[2]
[(.+?)/?$] => index.php?category_name=$matches[1]
)

[extra_rules] => Array
(
)

[extra_rules_top] => Array
(
)

[non_wp_rules] => Array
(
)

[extra_permastructs] => Array
(
[curriculum] => Array
(
[0] => /curriculum/%curriculum%
[1] => 0
)

[age_grade] => Array
(
[0] => /age_grade/%age_grade%
[1] => 0
)

[subject] => Array
(
[0] => /subject/%subject%
[1] => 0
)

[materials] => Array
(
[0] => /materials/%materials%
[1] => 0
)

[institutions] => Array
(
[0] => /institutions/%institutions%
[1] => 0
)

[location] => Array
(
[0] => /location/%location%
[1] => 0
)

[duration] => Array
(
[0] => /duration/%duration%
[1] => 0
)

)

[endpoints] => Array
(
)

[use_verbose_rules] =>
[use_verbose_page_rules] => 1
[rewritecode] => Array
(
[0] => %year%
[1] => %monthnum%
[2] => %day%
[3] => %hour%
[4] => %minute%
[5] => %second%
[6] => %postname%
[7] => %post_id%
[8] => %category%
[9] => %tag%
[10] => %author%
[11] => %pagename%
[12] => %search%
[13] => %curriculum%
[14] => %age_grade%
[15] => %subject%
[16] => %materials%
[17] => %institutions%
[18] => %location%
[19] => %duration%
)

[rewritereplace] => Array
(
[0] => ([0-9]{4})
[1] => ([0-9]{1,2})
[2] => ([0-9]{1,2})
[3] => ([0-9]{1,2})
[4] => ([0-9]{1,2})
[5] => ([0-9]{1,2})
[6] => ([^/]+)
[7] => ([0-9]+)
[8] => (.+?)
[9] => (.+?)
[10] => ([^/]+)
[11] => ([^/]+?)
[12] => (.+)
[13] => ([^/]+)
[14] => ([^/]+)
[15] => ([^/]+)
[16] => ([^/]+)
[17] => ([^/]+)
[18] => ([^/]+)
[19] => ([^/]+)
)

[queryreplace] => Array
(
[0] => year=
[1] => monthnum=
[2] => day=
[3] => hour=
[4] => minute=
[5] => second=
[6] => name=
[7] => p=
[8] => category_name=
[9] => tag=
[10] => author_name=
[11] => pagename=
[12] => s=
[13] => curriculum=
[14] => age_grade=
[15] => subject=
[16] => materials=
[17] => institutions=
[18] => location=
[19] => duration=
)

[feeds] => Array
(
[0] => feed
[1] => rdf
[2] => rss
[3] => rss2
[4] => atom
)

[feed_structure] => feed/%feed%
[comment_feed_structure] => comments/feed/%feed%
[page_structure] => %pagename%
)
-->


wjm comments:

could you update debug.php to
http://wordpress.pastebin.com/xdE2wiEF
and paste the results to pastebin.com
tahnks,

i am looking into your output


wjm comments:

Well. tracking down your issue.
1st, your link should be
http://www.haringkids.com/lesson_plans/curriculum/art/page/2
and not
http://www.haringkids.com/lesson_plans/?curriculum=art&paged=2

I see the debug results for
http://www.haringkids.com/lesson_plans/curriculum/art/page/2

<!-- DEBUG INFO:
Active Template:
/users/home/haring/domains/haringkids.com/web/public/lesson_plans/wp-content/themes/lesson_plans/404.php
-->
<!--
matched_rule: curriculum/([^/]+)/page/?([0-9]{1,})/?$
matched_query: index.php?curriculum=$matches[1]&paged=$matches[2]
matched_query (evaluated): curriculum=art&paged=2


there custom post type or taxonomy rewrite rule is matched,
but for some reason is it not being matched.

also, i think this coudl be the isseu
i see that your posts_per_page is set to 999
can how many posts do you have there? set it to 2 to test, this may all be the issue.

if this doesnt work, please update your debug.php
thanks


wjm comments:

to update the posts_per_page value you should go to /wp-admin/options-reading.php

and update
"Blog pages show at most"...


wjm comments:

just to let you know that your issue so far has nothing to do with pagination but with rewrite rules.
if you see the template tha is being called. it is 404.php
so you request does not even call taxonomy.php


Daniel Wiener comments:

I have pasted the most recent debug info into
http://wordpress.pastebin.com/1JxCTT4F

I think I may have figured out the problem. In order to get a page that lists the terms for each taxonomy I made a custom page template, then created Pages with the same name as the taxonomy.
e.g. http://www.haringkids.com/lesson_plans/subject/
So that may be causing the confusion. I am going to test it now. And explain more if that does anything.


wjm comments:

i have found the issue, it is the posts_per_page

reading the output for http://www.haringkids.com/lesson_plans/curriculum/art/page/2
you are requiring 999 posts per page. and page number 2 doe not exist
your request ends with
DESC LIMIT 999, 999

which obviusly will give you only one result in case you have 999 or more posts.

you aresetting posts per page to 12 but that is in taxonomy.php
and that is not even called


if you want to change that youneed to modify the post_per_page value at init time.

i will rewrite the code that will let you do taht.


wjm comments:

Ok, the soultion is to either update the options for posts_per_page win wp-admin/
or add this filter.


add this code to functions.php

add_action( 'init', 'childtheme_modify_posts_per_page', 0);
function childtheme_modify_posts_per_page() {
add_filter( 'option_posts_per_page', 'childtheme_option_posts_per_page' );
}
function childtheme_option_posts_per_page( $value ) {
return 12;
}


you make create a conditional inside childtheme_modify_posts_per_page() to change the default posts per page for a specific situation, lets say for taxonomy curriculum and term art for example

let me know if it works, as i am sure it will.


Daniel Wiener comments:

WJM,
Thanks. No need to write code. I just set posts per page to 12 on the WP dashboard. And now it all works.

So. I am looking looking looking for the complicated programming solution and all it needs is a simple change the admin. Sometimes the "smart" way is the stupid way.

Thanks.

Daniel


Daniel Wiener comments:

WJM,
Thanks. No need to write code. I just set posts per page to 12 on the WP dashboard. And now it all works.

So. I am looking looking looking for the complicated programming solution and all it needs is a simple change the admin. Sometimes the "smart" way is the stupid way.

Thanks.

Daniel


wjm comments:

good!
so in case you need to change the posts per page for a specific page, that needs to be done at init time.
actually at <strong>init time priority 0</strong>

2010-08-05

Utkarsh Kukreti answers:

Wouldn't

$args_2 = array(

'is_paged => true',


be

$args_2 = array(

'is_paged' => true,


?


Daniel Wiener comments:

Yes. You are right. I changed my typo. But still have the same problem. It would have been soooooooo nice if that was the solution.

2010-08-05

Lew Ayotte answers:

I would do it this way:

<?php

/**

* The template for displaying Category Archive pages.

*

* @package WordPress

* @subpackage Twenty_Ten

* @since Twenty Ten 1.0

*/

?>



<?php get_header();



$term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) );

$taxonomy = get_taxonomy($term->taxonomy);

?>



<div id="container">

<div id="content" role="main">

<h1 class="page-title"><?php

printf( __( '%s', 'twentyten' ), '<a href="/lesson_plans/' . $taxonomy->query_var . '">' . $taxonomy->labels->name . ':</a> ' . $term->name);

?></h1>

<?php

$category_description = category_description();

if ( ! empty( $category_description ) )

echo '<div class="archive-meta">' . $category_description . '</div>';

?>



<?php

$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

$args_2 = array(

'is_paged => true',

'paged' => $paged,

'posts_per_page' => 12,

$taxonomy->query_var => $term->slug

);

$query = new WP_Query($args_2);

?>



<?php

while ( $query->have_posts() ) : $query->the_post(); ?>

<div id="post-<?php the_ID(); ?>" <?php post_class() ?>>

<h2 class="toc_title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>



<div class="entry-summary">

<?php if(has_post_thumbnail()): ?>

<a href="<?php the_permalink(); ?>">

<?php the_post_thumbnail('small-thumbnail', array('class' => 'alignleft', 'title' => trim(strip_tags($post->post_title)), 'alt' => trim(strip_tags($post->post_title))));

?>

</a>

<?php endif; ?>



<?php

if(get_post_meta($post->ID, "_dwdescription_value", $single = true) != "") : ?>

<p><?php echo get_post_meta($post->ID, "_dwdescription_value", $single = true);?></p>



<?php endif; ?>



</div><!-- .entry-summary -->

<div class="entry-utility">

</div><!-- .entry-utility -->

</div><!-- #post-## -->

<?php endwhile; ?>



<div class="navigation">

<div class="alignleft"><?php previous_posts_link('&laquo; Previous') ?></div>

<div class="alignright"><?php next_posts_link('More &raquo;') ?></div>

</div>

<?php $wp_query = null; $wp_query = $temp; ?>

</div><!-- #content -->

</div><!-- #container -->



<?php get_sidebar(); ?>

<?php get_footer(); ?>


Lew Ayotte comments:

note:
I'm not overwriting $wp_query, because the whole point of WP_Query() is so you can create a custom query without killing the WP default query.

I also changed how you get your paged variable.


Daniel Wiener comments:

thanks. I had tried this. Your solution makes sense but it does not work.

And the results are:
There is no navigation at the bottom of the page for the next/previous link.

And if I add page=2 manually I still get a "page not found".

I did a var_dump for $paged to see what is happening and it is 1. Using my original code it was 0.

I am not sure the problem is with the "paging" but that the url is not "finding" taxonomy.php when "page=2" is added.




Lew Ayotte comments:

hrm, the first page should be page 1, not page 0...

http://www.haringkids.com/lesson_plans/curriculum/art/page/1

http://www.haringkids.com/lesson_plans/curriculum/art/page/2

also, I accidentally copied in the error w/ 'is_paged => true', - as Utkarsh pointed out.

2010-08-05

Michael Fields answers:

I installed your template locally and it worked perfectly for me. How many posts have been associated with the "art" term of the "curriculum" taxonomy? You may be experiencing a 404 because there are not enough posts to create a second page. When I visit http://www.haringkids.com/lesson_plans/curriculum/art no navigation is generated.


Daniel Wiener comments:

Yes. The template works for the first 12 entries but not for the subsequent "paged" entries. I have at least 50 entries for the term "art".

There is no navigation now because I tried Lew's solution (see above). I am going to re-upload my original code. Now.

Thanks


Michael Fields comments:

Oh, That makes sense, I thought they were there a few minutes ago :) I really don't know what to tell you, your template works perfectly. There must be conflicting code elsewhere in your site. Do you use $query->set() a lot throughout functions.php. If so, this method can create very confusing results. My advice would be to check for this as I can really find no wrong-doing in your template. Secondly, have you tried using a good, ole' fashioned, WordPress loop? Or is there a specific need to define a custom query. WordPress can handle custom taxonomy queries rather well in my experience.
Best wishes,
-Mike

2010-08-05

Guillermo Sornoza answers:

HI. In your case, i let you WP handles everything. I can't see why you have to write your own query.

In you case, i should remove the code:

<?php

global $paged, $wp_query, $wp;

$args = wp_parse_args($wp->matched_query);

if ( !empty ( $args['paged'] ) && 0 == $paged ) {

$wp_query->set('paged', $args['paged']);

$paged = $args['paged'];

}



$temp = $wp_query;

$wp_query= null;



$wp_query = new WP_Query();

$args_2 = array(

'is_paged => true',

'paged' => $paged,

'posts_per_page' => 12,

$taxonomy->query_var => $term->slug

);



$wp_query->query($args_2);

?>


and write the loop without the $wp_query variable.

Let me know if i this result helpful.