wp_list_categories link to first post of category instead of calling taxonomy template

Ended up resolving it by using this in the taxonomy template instead…

<?php
    /*
    Redirect To First Child
    */
    if (have_posts()) {
      while (have_posts()) {
        the_post();
        $pagekids = get_pages("child_of=".$post->ID."&sort_column=menu_order");
        $firstchild = $pagekids[0];
        wp_redirect(get_permalink($firstchild->ID));
      }
    }

?>

Leave a Comment