Change site style→

style-1 style-2
  1. nazenani
  2. >
  3. >
  4. >
  5. >
  6. What are main loop and sub loop?

What are main loop and sub loop?

Main loop

Main loop is use for main contents object like news, archive list. It exist only one in a URL page.

Sub loop

Sub loop is other loops except main loop. they are used in ,for example, recommended list in side contents. When call sub loops, it’s better to use get_post which does not generate new WP_query.


Fields with * is required.

go to related tags archive?

No tags setted.