Know whom to contact for the appropriate web development task at hand
It has become increasingly important for every business to have a…[...]
You will receive quote within 24 Hrs
If you have a WordPress website and are looking for a more from your search options available on the website then this article is for you. It is possible to customize your search options in WordPress; which you will come to know in detail by the end of this article.
All you need to do is to simply follow the steps mentioned here and you will end up with a good search form and even a good search results page.
Placing the Search Form:
To start with login to the admin section of your WordPress website and navigate to Appearance >> Widgets from the admin menu.
The Search Results Page:
Again from the WordPress admin section select the menu option Appearance >> Editor.
Here you will find a list of files on the right side of your screen. You need to look for the one with the title ‘Search Results’, which is the file with the name ‘search.php’. The file contains the template for the search results page.
The file is now ready for you to customize. it is essentially PHP code. For example if you wish to remove the section which generates comments you can simply delete the following code from the page:
<?php comments_popup_link(‘No Comments’, ‘ 1 comment’, ‘% comments’, ‘comments-link’, ‘Comments are closed’); ?>
It is also possible for you to change the number of search results like below:
and replace the # with the number of posts of our choice.
In addition to which you can even remove the footer by simply removing the piece of code mentioned below:
<?php get_footer(); ?>
You even have the option of displaying the number of results by making a few modifications like change the code below:
<h1>Search for: “<?php the_search_query(); ?>”</h1>
<h1>Search for : “<?php /*Search Count*/ $allsearch = &new Wp_Query(“s=$s&showposts=-1″); $key = wp_specialchars($s,1); $count = $allsearch->post_count; _e(”); _e(‘span>’). echo $key; _e(‘</span>’); _e(‘- ‘); echo $count . ‘ ‘ ; _e(‘articles’); wp_reset_query(); ?> </h1>
After you do make your required changes you need to save the file by hitting the ‘Update File’ button.
The above might be just what you are looking for, however it is not very simple to do so and does some knowledge of programming. The instructions mentioned above are very specific and to the point and you could pull it off it you are slightly IT Savvy too. But if you are afraid of messing something and not sure you will be able to set it right it is best you leave this to the professional WordPress Web Developers like Alakmalak.
Alakmalak is involved in WordPress Web Development since many years now and are very much capable of handling all of yours tasks.
Why Choose Alakmalak As a Your Growth Partner?
Alakmalak is a Web Development Company In India that offers services for several technologies. There have been around for a very long time and have developed over 2500 projects for clients all around the world. They have highly skilled web developers with a great deal of experience.
I want to thank all Alakmalak team for take my project and help me to improve my website! Thank you for your responsibility and seriousness at the time to do corrections and improvements on my website and for always be in touch with me. Highly recommended! Great team! Great company! I'm very thankful Alakmalak!
A few kinds words to say about Alakmalak programming and design. Working with these guys is always such a great relief. You know you are getting your stuff done right and usually always in a timely fashion. I’m a middle man for the most part And my clients are always happy with the end result.