• Resolved unknownclubber

    (@unknownclubber)


    Hi !

    I want to do that :

    • a category
    • 1st sub category
    • 1st post
    • 2nd post
    • 3rd post
    • 2nd sub category

    How to insert a loop in a loop ? My second query_post will overwrite the first …???

    Thanks in advance

Viewing 1 replies (of 1 total)
  • Thread Starter unknownclubber

    (@unknownclubber)

    I’ve found :

    query_posts('...');
        while (have_posts()) : the_post();
            ...
            global $post;
            $myposts = get_posts('...');
                foreach($myposts as $post) :
                    ...
                endforeach;
            endwhile;

    Thanks Me ??

Viewing 1 replies (of 1 total)
  • The topic ‘A loop in a loop’ is closed to new replies.