Did I change/damage the gloabl query?
-
I am not sure what I did but after experimenting with query_posts and get_post, the WP query is not working..
<nav class="footernav"> <ul class="navi"> <?php $footer_query = new WP_Query('cat=1'); while($footer_query->have_posts()) : $footer_query->the_post(); <li><a>"><?php the_title(); ?></a> </li> endwhile; wp_reset_postdata(); ?> </nav>
Ive had success with the query_post but started to change everything to WP query because I heard that’s what you should do for Multiple Loops. I get this error;
Parse error: syntax error, unexpected '<' in C:\wamp\www\wp-content\themes\BLANK-Theme\footer.php on line 16
Line 16 is the closing ul. Is it possible to change or damage the loop somehow?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Did I change/damage the gloabl query?’ is closed to new replies.