Grow your CSS skills. Land your dream job.

WordPress – double query loop, if have customdfield

  • # October 14, 2009 at 2:25 pm

    So, here is a little problem, that i want to solve.
    On homepage i do normal loop on each article and display 10 of them. Now on top of normal blog roll, i want to make "graphical" wersion of 5 newest news, that have custom field with image, so i can do kind of slider of them. And if the post was displayed it this top loop, it should not be displayed in other news in next loop. Also first loop should check no only 10 newest post to find for example 5 with custom field added, but as many as needed. The second loop may show 10 newests posts, excluding those, which was showed on top loop.
    Any clue how to do this kind of task?

    Thanks for any tips.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".