Showing search results on a page

Please refer to the updated comment. You have to do some changes to the search functionality by default. First, if you want to use different templates for each kind of search, you can add conditions in the search.php file. if(isset($_GET[‘search-type’])) { $type = $_GET[‘search-type’]; if ($type == ‘global’) { load_template(TEMPLATEPATH . ‘/search-global.php’); } elseif ($type … Read more

How to change “Read More” text?

add_filter(‘gettext’, ‘translate_my_text’ ); function translate_my_text($translated) { $translated = str_ireplace(‘Leave a comment on: “%s”’, ‘my text“%s”’, $translated); $translated = str_ireplace(‘Leave a Comment’, ‘my text’, $translated); $translated = str_ireplace(‘Read More’, ‘my text’, $translated); $translated = str_ireplace(‘READ MORE’, ‘my text’, $translated); return $translated; }