I currently have this function for logout in my wordpress blog, <?php echo wp_logout_url() ?> i want to redirect my users to the home page after logging out. how to do this?
goto your wp-login.php file and there find commands which says logout function. below them write this function: <?php header('Location:http://www.yourdomain.com'); ?> and you r done.
There is no need to hack into your wordpress original file. Just download and install wp-login-logout plugin from http://www.my-php-scripts.net/index.php/Wordpress/login-and-logout-redirection-wordpress-plugin-advanced-php.html This plugin manage where to redirect user after login and after logout.