Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9195611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:39:56+00:00 2026-06-17T21:39:56+00:00

I find the explanation here very useful : http://codex.wordpress.org/The_Loop#Multiple_Loops , except it doesn’t tell

  • 0

I find the explanation here very useful : http://codex.wordpress.org/The_Loop#Multiple_Loops
, except it doesn’t tell me how to get pagination for multiple loops. I read some similar questions here too, but they are either not answered or doesn’t really work. Below are the codes I use for two different custom loops:

$myLoop1 = new WP_Query("tag='myTag1'&showposts=5"&paged=" . $paged ); 
while($myLoop1->have_posts()) : $myLoop1->the_post();
//do something...
endwhile;



$myLoop2 = new WP_Query("tag='myTag2'&showposts=5"&paged=" . $paged ); 
while($myLoop2->have_posts()) : $myLoop2->the_post();
//do something...
endwhile;

The tutorial here: http://www.kriesi.at/archives/how-to-build-a-wordpress-post-pagination-without-plugin/ should be able to get the pagination done smoothly, but I tried many many times, it never work. The link of page is always http://www.myDomain.com/page/# which is a general page address instead of my custom loop.

Moreover, is it possible to ajaxify the pagination so visitors can go to different pages of the loops while staying on the page? This is minor, the first question is much more important to me. Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:39:58+00:00Added an answer on June 17, 2026 at 9:39 pm

    Finally I found the solution thanks to @brasofilo ‘s advice! The answer from the following link allow you to have as many custom loops as you want all in the same page!

    https://wordpress.stackexchange.com/questions/47259/multiple-wp-query-loops-with-pagination

    p.s. If anyone has ajax solution, I would love to know!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If the question doesn't seem very clear, it should be after this explanation !
Here's an unexpected find. Something of a very basic Ruby issue that I haven't
I know very little about security (I need to find a basic explanation of
In the CLLocationManager class documentation, I find such explanation for the distanceFilter property: This
This seems like it should be easy, but I can't quite find an explanation
I can't see to find a quick explanation of the differences so I can
Does anyone know where I can find a good explanation/tutorial of what and how
I can't for the life of me find any decent explanation of the [file]:
Im pretty new to Java Web Services, but I cant find a good explanation
This is probably batch scripting 101, but I can't find any clear explanation/documentation on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.