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]

Automatically provide tinyurls for your WordPress posts

February 14, 2009

If you want to reduce the size of urls, you can use tinyurls, but how to provide a tinyurl to your wordpress blog posts? Simply open your functions.php file and paste the following code: function getTinyUrl($url) { $tinyurl = file_get_contents("http://tinyurl.com/api-create.php?url=".$url); return $tinyurl; } On your single.php file, paste the following within the loop: <?php $turl = getTinyUrl(get_permalink($post->ID)); echo 'Tiny Url for this post: <a href="'.$turl.'">'.$turl.'</a>' ?> In your php.ini... [Read the full story]

Manually reset your WordPress password

February 14, 2009

What to do if you lost your WordPress password? The easier is to use PhpMyAdmin to update it. If you’ve only single user on your WordPress installation, and the login name is admin. You can reset password with just simple SQL query, which once executed will replace password with whatever you enter as your new password to be. Don’t forget to modify the password and username before executing it. Also, make sure you have a backup of your database before executing any SQL queries to your database. UPDATE 'wp_users' SET 'user_pass'... [Read the full story]

Get rid of links in your wordpress comments

February 12, 2009

As you wordpress blog became one of the most popular WordPress related blogs, you had to face the problem of people inserting links in comments. Some links are relevant, but some aren’t at all. here is a solution to say goodbye to links in comments. Just paste this code in your function.php file. Once the file is saved, you can say goodbye to links and other undesired html in your comments. function plc_comment_post( $incoming_comment ) { $incoming_comment['comment_content'] = htmlspecialchars($incoming_comment['comment_content']); $incoming_comment['comment_content']... [Read the full story]

Display allowed tags in wordpress comments

February 10, 2009

Do you know that your readers can use some HTML tags in the comments form? In order to make things easier for them, you should notify your readership about what HTML tags they can use in the comment form. Here’s an easy way to do it. edit your comments.php file and paste the following code just above the comment form: Allowed tags: <?php echo allowed_tags(); ?>  Read More →

Page 2 of 4«1234»