Suggest your visitors to leave comments in your rss feed

February 18, 2009

Most bloggers like to receive comments about their posts. How to display a message on your rss feed, and notifying your visitors that the discussion is open and suggesting them to comment? Additionally, when using WordPress as CMS, sometimes it is necessary to create new posts instead of pages for static pages because you want them to appear in the RSS feed. You may not want to enable comments inside those posts. At other cases, you may also want to selectively choose to enable and disable comments. The problem is, how do... [Read the full story]

Display adsense to search engines visitors only

November 19, 2008

It’s a fact: People who click on your ads are people comming from search engines, not regular readers. In order to avoid being “Smart Priced” by Google Adsense, you should definitely display ads to search engines visitors only. Here’s how to do it. First, we have to create a function. paste the code below in your theme functions.php file. Create that file if it doesn’t exists. function fromasearchengine(){ $ref = $_SERVER['HTTP_REFERER']; $SE = array(’/search?’, ‘images.google.’, ‘web.info.com’,... [Read the full story]

Display a welcome back message to your wordpress visitors

November 18, 2008

What about displaying a customized welcome message to your readers? Do you know that you can use the cookie sended by the comment form to get the name of the reader? Let’s use it to create a very cool welcome message. First, we checked if the visitor have a cookie called comment_author_xxx. If he have, we can get his name and display it on the welcome message. If the cookie doesn’t exists, we simply welcome the visitor as a guest. Simply paste the following code wherever you want on your template. <?php if(isset($_COOKIE['comment_author_'.COOKIEHASH]))... [Read the full story]

Page 1 of 11