Customizing search with a function
-
I need to modify the default search in WP.So created a function in function.php which search the database. I don’t know how to add the function to search.
The function result is an array containing 4 values.I need to display the contents in my own design
The theme i use have search.php and searchform.php.
Please help
<div class="thumbnail"> <img />"> <a>"> <?php echo $data[0]; ?></a> <p><?php echo $data[2]; ?> </p> </div>
This shold be the format of the search result
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Customizing search with a function’ is closed to new replies.