The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End WordPress- Capitalization breaks navigation on custom loop

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #29823

    I have a custom loop that displays all the posts in the team category on the team page (
    below is the code.

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

    <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; query_posts("cat=5&paged=$paged"); ?>

    <?php while (have_posts()) : the_post(); ?>

    and I have the navigation at the bottom

    <?php /* Display navigation to next/previous pages when applicable */ ?>

    <?php if ( $wp_query->max_num_pages > 1 ) : ?>

    <div id="nav-below" class="navigation">

    <div class="nav-previous">

    <?php next_posts_link( __( ‘<span class="meta-nav">&larr;</span> Older posts’, ‘twentyten’ ) ); ?>

    </div><!– .nav-previous –>

    <div class="nav-next">

    <?php previous_posts_link( __( ‘Newer posts <span class="meta-nav">&rarr;</span>’, ‘twentyten’ ) ); ?>

    </div><!– .nav-next –>

    when I click on older posts it gives me a 404 error (, but if I capitalize the Team ( the pages exists. Does anyone know why page 2 would be capitalized??? What do I need to change to make it work correctly? Thanks for any help.


    The admin control panel wouldn’t let me change it, so I changed it in the database. It works, still don’t know why the second page Team was capitalized?

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.