wordpress / php help

Out of context: Reply #30

  • Started
  • Last post
  • 30 Responses
  • vaxorcist0

    first, try to actually "print" the query string, as you may have to change the order of things...

    <.ul>
    <.?php $temp_query = $wp_query;
    print "\n\n\n<!-- Query: $temp_query -->\n\n\n";
    query_posts("showposts=100&cat=1... ?>
    <.?php while (have_posts()) { the_post(); ?>
    <.li><a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></li>
    <.?php } $wp_query = $temp_query; ?>
    <./ul>

    ---

    then, show the commented query here, and we mgiht debug it....

View thread