Skip to content

How to Add Ajax Load More Button to Search Results in WordPress?

Key Takeaways

  • Nexter Blocks Search Bar block adds a Load More button to Ajax search results in WordPress, showing a few results first and revealing more on click.
  • Load More/Lazy Load tab lets the Search Bar block switch Loading Options to Load More, change Button Text, Loading Text, All Posts Loaded Text, and set how many items load at once with More Post On Click/Scroll.
  • Results Area tab controls Posts Per Page for the initial search result, and a lower Posts Per Page value than the total search result items is required to show the load more button.
Table of Contents

When you’ve got a ton of content, displaying all of it in search results can slow things down. A “Load More” button can solve this by showing a few results first, and users can click to reveal more. 

With the Search Bar block from the Nexter Blocks, you can easily add a load more button to the Ajax search result.

To check the complete feature overview documentation of the Nexter Blocks Search Bar block, click here.

Requirement  – This block is a part of the Nexter Blocks, make sure it’s installed & activated to enjoy all its powers.

To do this, add the Search Bar block on the page or template and follow the steps –

1. Select the appropriate source and type for search.

2. Now go to Extra Option tab and enable the AJAX Search toggle.

3. Then go to the Load More/Lazy Load tab and select Load More from the Loading Options dropdown.

From the Button Text field, you can change the text on the button, while the Loading Text field allows you to change the text that appears when more items are being loaded. Additionally, you can also modify the text that appears when all items are loaded by using the All Posts Loaded Text field.

Then, from the More Post On Click/Scroll field, you can set how many items will load at once on the button click.

By turning on the Counter toggle, you can show a counter for the number of pages and from the Counter Text field, you can change the section text.

4. After that, go to the Results Area tab, and from the Posts Per Page section, you can set how many items will load in the initial search result.

Depending on the total number of items and the number set in the Posts Per Page field, you’ll see a load more button when you make a search which you can use to load more results.

Note: To show a load more button, you must set a lower number in the Posts Per Page field than the total number of search result items.

About the Author

Photo of Aditya Sharma CMO of Nexter
CMO at POSIMYTH Innovations · Nexter · 7 years experience

He has spent years in the WordPress ecosystem building, breaking, and optimizing sites until they actually perform. He works at the intersection of speed, growth, and usability, helping creators ship websites that load fast and convert. An active WordPress community contributor sharing through tools, tutorials, and direct collaboration. Tested practice, not theory.

WordPressThemesElementorn8nAIClaudeAutomationServer

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

Why is the Load More button not showing in WordPress Ajax search results?

The button only appears when the initial result set is smaller than the total number of matching items. In Nexter Blocks, the key setting is Posts Per Page in the Results Area tab, and it has to be lower than the total search result count. If those numbers are too close, there is nothing left to load, so the button never appears. That makes Posts Per Page the main control for whether Ajax search feels paginated or fully expanded.

What do I need installed before adding a Load More button to Ajax search results?

Nexter Blocks has to be installed and activated because the Search Bar block is part of that package. The tutorial uses that block to add Ajax search and Load More behavior, so without it you do not have the feature set described here. A practical shortcut is to start from the Search Bar block on a page or template, then configure AJAX Search and Load More from its options.

How many search results should I show before loading more items?

The page does not give a fixed number, so the right setting depends on how much content you want visible at once. The important rule is that Posts Per Page must be lower than the total number of search results if you want a Load More button to appear. In practice, a smaller initial result set keeps searches lighter and makes the button useful instead of redundant.

Can I change the text on the Ajax Load More button?

The Search Bar block lets you change several labels tied to loading behavior. Button Text controls the label on the button itself, Loading Text shows while more items are being fetched, and All Posts Loaded Text appears when everything has already been loaded. That matters because users need clear feedback during Ajax loading, especially when results are spread across multiple clicks.

How do I control how many posts load each time I click Load More?

The More Post On Click/Scroll field sets how many items load per interaction. That gives you control over pacing: smaller batches keep each request lighter, while larger batches reduce how many clicks people need. The tutorial also mentions a Counter toggle and Counter Text field, which can help users understand how many pages or batches remain.

Is there another way to add Ajax search with Load More besides building it from scratch?

LIVE BLOCK LINK shows that Nexter Blocks already provides a Search Bar block for this use case, so you are not assembling the behavior manually. The flow is built around enabling AJAX Search and then choosing Load More in the Loading Options dropdown. That makes it a practical option when you want search results to reveal gradually instead of dumping everything at once.

Last reviewed: August 18, 2026

Related Docs