Trying to modify the loop
Hey everyone,
I'm reading the codex regarding the loop and while I think I understand the code examples there, I'm having a hard time integrating it with this theme. Currently I'm using the same loop but I need it to be modified so that it displays 5 posts from each of these categories: featured post, news, deals. Here is the default code, can someone help me modify it to what I need it to be? TIA. Code:
<?php /* Post Container starts here */ if ( function_exists('post_class') ) { ?> |
The code in the text area The LOOP is just the loop. query_posts code needs to be put before the loop, in Atahualpa's case into the text area above, named Content ABOVE the LOOP
|
Oh.. I wasn't aware of that at all. I'll have to give that a try today. That's probably why it's pretty messed up. Thanks, Flynn.
|
What Flynn said was correct. However, what if I have multiple loops? So for now, I want three loops:
Code:
<?php query_posts_deals('category_name=Deals&showposts=1'); ?> Parse error: syntax error, unexpected '=' in C:\xampplite\htdocs\wordpress\wp-content\themes\atahualpa.3.4.1\atahualpa\functions .php(389) : eval()'d code on line 14 How do I do this properly? My display could be wrong, because I only have one post for each category right now anyway. But anyway... any ideas? |
Flynn or anyone, is what I'm asking for possible using Atahualpa?
|
For multiple loops you should create a new page template. Creating page templates has been discussed a few times here and there are also a few pages on the Wordpress.org codex. Keep in mind that multiple loops aren't easy especially if you want to keep proper next/previous page navigation.
|
All times are GMT -6. The time now is 04:00 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.