Skip to main content

Posts

Showing posts with the label Plug-in (computing)

Add Facebook "like" button in WordPress

Facebook is one of the largest and more popular websites of the world. Do you want to add a Facebook "like" button to your WordPress blog . that's very easy just read it. Open your single.php(or any file where you'd like the "like" button to be displayed) and paste the following code: <iframe src="http://www.facebook.com/plugins/like.php?href= <?php echo urlencode(get_permalink($post->ID));  ?>&amp;layout=standard&amp;show_faces=false&amp;width=450&amp;action=like&amp; colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true"  style="border:none; overflow:hidden; width:450px; height:25px"></iframe> That's all. once the file saved. the facebook "like" Button will be displayed. If you enjoyed this article, please consider sharing it!

Automatically Notify Your Members On New Posts In WordPress

Do you want to send automatically email to your registered users and notify them oa a new post on WordPress Blog? If yes Jus read it out how to do it easily! Just paste the following code on your functions.php file: function email_members($post_ID) { global $wpdb; $usersarray = $wpdb->get_results("SELECT user_email FROM $wpdb->users;"); $users = implode(",", $usersarray); mail($users, "New WordPress recipe online!", 'A new recipe have been published on http://www.wprecipes.com'); return $post_ID; } add_action('publish_post', 'email_members'); Once saved, all registered users will receive an email when a new post is published.  If you enjoyed this article, please consider sharing it!