Display Search Term and Result Count in WordPress
In this tutorial we will share how you can add a simple function on your search page which will display the search term and the number of results.
WPBeginner WordPress tutorials allow you to extend the power of WordPress. Our step by step WordPress tutorials are easy to understand and follows the WordPress best practices. Don't waste your time buying books that cover just the basics. These WordPress tutorials contain real-life examples, tips, and hacks that allows you to learn WordPress faster.
In this tutorial we will share how you can add a simple function on your search page which will display the search term and the number of results.
Do you want to add content to your WordPress RSS feeds? By default, WordPress RSS feeds show your recent post content and there is no option to customize that content for your RSS feed users. In this article, we’ll show you how to easily add… Read More »
Do you want to display or hide a category depending on whether it has posts in WordPress? By default, WordPress does not display empty categories. However, sometimes you may want to show them even when they have no content. In this article, we will show… Read More »
By default, WordPress allows certain HTML tags within the comments such as <a> <em> <strong> etc. If you notice a lot of SPAM comments also contain these tags. In this tutorial we will show you how you can disable HTML tags in your WordPress comments.
You might think that adding a date to WordPress is hard and will require multiple steps, but it is a short and simple method. In this article, we will share a snippet that will allow you to display today’s date in WordPress or any other PHP based website.
Do you want to display subcategories on category pages in WordPress? WordPress makes it easy to organize your posts using categories and subcategories. You can help your visitors navigate subcategories more easily by displaying them on category pages. In this article, we’ll show you how… Read More »
Do you want to display the most accurate comment count in WordPress? Your WordPress blog may have comments that are pending moderation, spam, trackback and pings. By default, there is no easy way to display the exact comment count on your WordPress site. In this… Read More »
Do you want to display the most recent comments on top in WordPress? By default, WordPress displays older comments first. However, some website owners may want to rearrange comments by displaying the newest comments on top. In this article, we’ll show you how to easily… Read More »
Do you want to display a list of all authors on your WordPress blog? An author list will show at a glance who is writing for your blog and allow your visitors to more easily find content written by their favorite authors. In this article,… Read More »
Do you want to restrict access to your WordPress admin area for security reasons? If you have a small team, then one good solution is to restrict access to only those IP addresses used by team members. In this article, we’ll show you how to… Read More »
I need help with…
Popular searches: