How to Display Search Term and Result Count in WordPress

In this tutorial you learn how to add Search Term and Search Result Count in your WordPress search page, I was looking for this functionality to add in my new WordPress site, currently the one you’re viewing now yayyyyyy ;).

Search Term and Search Count is a bit helpful for users who search your site, it help them know how many post they’re currently viewing.

Open your search.php file under your theme directory and add this code.

Solution 1:

Solution 2:

Source in Solution 2: from WP Beginner

Sample demo / to feel more try searching:


Add CSS code to make your search term and search count alive, that’s it hope it helps ;).

by Ryan Sutana

  • Good day very nice website!! Guy .. Excellent .. Amazing .. I’ll bookmark your blog and take the feeds also?I am happy to search out a lot of useful info right here in the submit, we want develop extra strategies on this regard, thank you for sharing. . . . . .