Skip to main content
deleted 122 characters in body
Source Link
kaiser
  • 50.8k
  • 27
  • 150
  • 244

I have few questions on wordpress loop. The question may be strange, but it was fit for the jquery requirement. What I want to do are:

  1. Loop the "page" div with two "threads" show in each by NOT using any transition like page number(pagination??), but just to paste all the posts("thread" div) in below format inside one php. All the class name of div no need to be changed in loop.

  2. "title" div come from another loop, as it is not related to "thread", that's "loop inside loop"?

        <div class="page">
            <div class="title">
                    <--title from another loop-->
            </div>
    
            <div class="thread">
                <div class="img-cont"></div>
                <--content of 1st thread-->
            </div>
    
                            <div class="thread">
                <div class="img-cont"></div>
                <--content of 2nd thread-->
            </div>
        </div>
    

Thx alot for watching this. I appreciate any of your feedback.

I have few questions on wordpress loop. The question may be strange, but it was fit for the jquery requirement. What I want to do are:

  1. Loop the "page" div with two "threads" show in each by NOT using any transition like page number(pagination??), but just to paste all the posts("thread" div) in below format inside one php. All the class name of div no need to be changed in loop.

  2. "title" div come from another loop, as it is not related to "thread", that's "loop inside loop"?

        <div class="page">
            <div class="title">
                    <--title from another loop-->
            </div>
    
            <div class="thread">
                <div class="img-cont"></div>
                <--content of 1st thread-->
            </div>
    
                            <div class="thread">
                <div class="img-cont"></div>
                <--content of 2nd thread-->
            </div>
        </div>
    

Thx alot for watching this. I appreciate any of your feedback.

I have few questions on wordpress loop. The question may be strange, but it was fit for the jquery requirement. What I want to do are:

  1. Loop the "page" div with two "threads" show in each by NOT using any transition like page number(pagination??), but just to paste all the posts("thread" div) in below format inside one php. All the class name of div no need to be changed in loop.

  2. "title" div come from another loop, as it is not related to "thread", that's "loop inside loop"?

    <div class="page">
        <div class="title">
            <--title from another loop-->
        </div>
    
        <div class="thread">
            <div class="img-cont"></div>
            <--content of 1st thread-->
        </div>
    
        <div class="thread">
            <div class="img-cont"></div>
            <--content of 2nd thread-->
        </div>
    </div>
    
Source Link
Cwkin7
  • 41
  • 2
  • 10

Set loop format & have a loop inside other one

I have few questions on wordpress loop. The question may be strange, but it was fit for the jquery requirement. What I want to do are:

  1. Loop the "page" div with two "threads" show in each by NOT using any transition like page number(pagination??), but just to paste all the posts("thread" div) in below format inside one php. All the class name of div no need to be changed in loop.

  2. "title" div come from another loop, as it is not related to "thread", that's "loop inside loop"?

        <div class="page">
            <div class="title">
                    <--title from another loop-->
            </div>
    
            <div class="thread">
                <div class="img-cont"></div>
                <--content of 1st thread-->
            </div>
    
                            <div class="thread">
                <div class="img-cont"></div>
                <--content of 2nd thread-->
            </div>
        </div>
    

Thx alot for watching this. I appreciate any of your feedback.