Is there anything like “post pool” for the wp Loop?
-
Hi guys ??
My first post here. Im newbie in wordpress, kinda post-newbie in PHP ?? (i programmed a social networking engine not long ago).
I have a question.
I have read the codex but i still dont really understand how the wp loop works.
How can i give a query to the wp loop? I mean by default it just calls have_posts(), innit? But where is the part which tells the loop to list posts by a certain criteria?
If i have a complex self written mysql query how can i list that query with the default archive wp loop? Cause i dont want to mess up the code.
I just want to do
if (is_category(‘MySpecialCat’)
{
give the loop my special query to list
}
else
{
do the usual.
}I hope its understandable, english isnt my native language and i havea messed-up thinking anyway.
Thanks for understanding. Cheers.
- The topic ‘Is there anything like “post pool” for the wp Loop?’ is closed to new replies.