Add the following code to your template’s search.php – somewhere before the loop:
<?php
global $wp_query;
echo 'Your results retrive ('.$wp_query->found_posts.' posts) with the subject '.get_search_query().'.';
?>
If search.php does not exists in your template’s directory, either copy archive.php (if it does not exists too, copy index.php – see template hierarchy) and rename it to search.php or insert following code, again before the loop, right into archive.php or index.php respectively:
<?php
if ( is_search() ){
global $wp_query;
echo 'Your results retrive ('.$wp_query->found_posts.' posts) with the subject '.get_search_query().'.';
}
?>
Related Posts:
- why does bones theme call the_excerpt function with parameters?
- How can I customize the search results in Bones theme?
- Varying Search Result Pages
- Twenty Twelve theme search returns Nothing Found
- Search form not finding content in template page
- Hi everybody, I have a problem of search box
- Moving the search bar to be in menu bar
- How to remove date, author and comment count from Chameleon search results page
- How can I modify the CSS only for the search results page of WordPress?
- Where to find child themes?
- Basic wordpress search shows no results
- How do I remove search bar that isn’t a widget?
- Search engine for themes [closed]
- Override parent theme translation on child theme
- What does exactly GPL license mean for my WordPress theme?
- Categorising themes by folders in backend
- How to incorporate admin theme in my back-end-plugin
- Using chunk theme from wordpress.com on my own host
- What is the first file wordpress looks at in a theme?
- Duplicate and change a Theme Widget
- Custom Upload Panel in Menu Bar
- WordPress themes under GPL license
- Theme not showing after uploading
- I want to run different WordPress websites under the same database
- get_template_directory_uri does not seem to work when defining WP_CONTENT_DIR
- Using a _GET gives me a debug error (over my head)
- Possible to put header-{your_custom_template}.php in subdirectory?
- Why wp_enqueue_style() not working?
- How to remove header image on subpages in Twenty Eleven (default theme)?
- Can I update themes without enabling maintenance mode?
- 404 Error while accessing the font files
- Child Style.css not overriding parent theme style located in assets/css/main.css
- Disable Theme API / Front end (for API only environment)
- Creating a theme options page
- Showing post thumbnail (attachment) on the archive.php category listing
- OptimizePress Theme Overriding add_filter page_template
- How do I change the scan depth for page template files?
- changing behaviour of get_search_form
- Moving test theme to live site without mySQL error – how? [closed]
- Add more widget areas to a theme
- Posts and Pages not showing on admin, but showing in theme
- Apache errors when retrieving taxonomies
- How can I add class to every quote element?
- wp_get_theme() works fine, but wp_get_themes() returns empty array
- Read More Button Not Responding To Click
- How to use command lines an activate theme in wp – cli also setup Vagrant/Sage Theme?
- How to change the format of posts on the hompage?
- How to display message (with switch_theme hook) after deactivating My theme?
- GPL 2 Theme using a framework for commercial Theme?
- Using twitter bootstrap in a theme
- Featured images, am I missing something?
- Is there a way to upgrade a theme without losing custom templates?
- What hook is the currently active theme’s functions.php file loaded on? [duplicate]
- It’s okay if I do not write add_action()
- i would like to have 3 default columns editable in guttenberg
- Basic Theme for a Static Corporate Website?
- WordPress 5.1 upgrade has lost the parent theme JavaScript
- SOLVED Custom Add rewrite rule and Get string
- Section Background Images?
- Theme update deleted my custom page
- Create page options for theme?
- Permissions error
- Where is the best place to catch useragent?
- Setting a new default template for the creation of a page
- How can I change the prev / next buttons text to Dutch?
- Woocommerce single product image blurred and small. Actual image is big
- Event Organiser breaks the theme [closed]
- Get data from Theme Options and use them into meta options field in custom post type
- Can’t see themes for Multi-site wildcard subdomain
- Are the Theme frame works or Theme builders slow downs the performance? [closed]
- Make the “Add New Post” one column for all users
- Transclude/Import one wordpress page to another
- Remove admin sub menu from child theme
- removing side space between para and container on generatepress?
- Video not showing on smaller resolutions
- How Can I Disable WordPress Theme Self-Update?
- I want to remove part of a header
- Moving website from localhost to existing website without altering existing live theme
- CSS in child theme isn’t working properly
- How do I change theme demo [duplicate]
- template_redirect() doesn’t seem to be working
- Theme installation error “The parent theme could not be found”
- WordPress theme is not displayed properly on other computers
- Media previews on posts
- Display ads by location [closed]
- load language file
- Are immediately-called actions not usable in themes?
- Where is the stylesheet code?
- Detect PHP script usage in themes?
- Problems Replacing Background Color with Static Background Image in Responsive Design
- Lost in creating multiple meta boxes
- How to insert a column (part of theme) in the middle of the content body?
- Where can I decide the number of posts to display on the blog index page?
- I need to disable responsive feature of a theme called Meet GavernWP [closed]
- how to add dynamic footer credit in Greatmag theme [closed]
- Twenty Fifteen Premium Theme [closed]
- Can i Remove copyright text wordpress.org theme
- Wrong theme being activated
- I am unable to remove “© 2022 My Blog | PopularFX Theme ” from footer [closed]
- Workaround AJAX calling without directly calling WordPress backend (Admin dashboard) because it is restricted to the end user (the public)