• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tombo

    (@tombo)

    Okay, this is good…
    For possible parameters, it lists “category=” as being “not yet implemented.”
    I take it that means the feature is to be added in later versions, but currently does not work.
    It mentions at the bottom that this information (wiki) was last updated on June 11th of this year. Seeing as of how that was a month-and-a-half ago, before I go updating my version of wordpress, does anyone know if the most up-to-date nightly version has this parameter implemented? Is there a mod anywhere or any source code I can modify to make this feature implemented?
    The reason I want to do this: I want one loop for regular entries in my blog, then a second loop for displaying photos – both loops being displayed on the same page. For the blog entries I’d want the date and toipc and such, but for the photos I’d just like them listed as thumbnails on the side, with no date or time or anything attached to them. And I’d want to be able to add both entries to the blog and list of photos by simply chosing which category I’ll be submitting an entry in.
    Aside from using two iframes that each only show posts for one category, I don’t know how else to do this. I’m looking for the most efficient method as well.
    Thanks for the help.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Parameters for running multiple WP loops’ is closed to new replies.