View Single Post
Old 12-25-2011, 08:17 AM  
AAB
Confirmed User
 
AAB's Avatar
 
Join Date: Apr 2009
Location: Alberta
Posts: 874
Quote:
Originally Posted by cyberxxx View Post
This code will do the trick (insert it right into your WP theme):

Code:
<?php
if (!is_user_logged_in()) {
  echo "your annoying ad is here";
}
?>
Or do you want it made as a widget or so?
The double quotes seem to make this code unusable. Because every ad code will contain double quotes somewhere within it, it will break the echo which is exactly what happened when I tried it.
AAB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote