Topics

Get Keyword from referrer

Get Keyword from referrer

This Function should extract the keyword from the referrer URL to get what your visitor was searching for on google, msn, live, altavista, alltheweb, scirus, aol, vivisimo, lycos, aliweb, yahoo and baidu.

Integrate Theme Switcher

What if you want Theme Switcher into all your WordPress Themes?
Try this

  • Open file “wp-includes\template-functions-general.php” and search for “function wp_meta() {“
  • add this code just after "do_action(‘wp_meta’);"
echo "<h2>Themes:</h2><div>";
wp_theme_switcher('dropdown');
echo "</div>";
  • save the file, and you’ll get the Theme Switcher on everypage after the meta

Change WordPress page order

I am not sure why Page order is not working in WordPress, but this is a simple workaround to fix it

  • go to wordpress admin -write -write page -change ALL pages “Page Order” from the right down box.
  • open file “wp-includes\template-functions-post.php” in any text editor.
  • go to line 334 or search for “function wp_list_pages($args = ”) {“
  • insert this line after the searched line ” $args .= ‘&sort_column=menu_order’;”
  • save it and now your page should order fine.

Arab Renamer V2

Arab Renamer V2 screenshot

Arab Renamer is a small tool to convert your Arabic letters to the corresponding English letters without any translation, but using well known method of writing Arabic.