Parameters for running multiple WP loops
-
Hullo,
I was curious if it were possible to run two wordpress loops in one page (and by wordpress loop I mean the tag that extracts entries from the mySQL table and puts them in the page, one by one, limited by however many entries you chose to display.)
So I tried it, and it worked fine. Now for question number 2:
Is there any way to specify, in this “loop” what category to show entries from? (Ie, say I had two categories in my blog and ran two separate loops on the page, each one showing posts from each category. How? What about multipe categories in a single loop?)
Is there any way to specify, in this “loop” how many entries to display? (Ie, say I had two loops on a page and I wanted one to show a limit of the last 20 entries and the other to show a limit of the last 5 entries.)
And I think that’s all I need to know for now. I tried searching for a related question but couldn’t figure out a search term that would bring up appropriate results. Thanks for your time.
The topic ‘Parameters for running multiple WP loops’ is closed to new replies.