HTML in comments can be a good things, but many times people abuse it, for example by inserting links. In this recipe, I’ll show you how you can automatically get rid of any HTML entered in your post comments.
HTML in comments can be a good things, but many times people abuse it, for example by inserting links. In this recipe, I’ll show you how you can automatically get rid of any HTML entered in your post comments.
WordPress have a debug mode which allow you to easily get information when something goes wrong. To enable the debug mode, you have to add a constant to the wp-config.php file. But what about an easy way to switch on the debug mode, even without accessing wp-config.php?
Facebook is one of the largest and more popular websites of the world. Althought I do not have an account there, I figured out many of you would be interested in knowing how you can ad a “Like” button to your blog. That’s very easy, just read this recipe.
Do you use trackbacks and pings? Many people find them useless and asked me how they can get rid of them. Sure you can close trackbacks post by post, but this will consume a lot of time. Or you can use a good old SQl query, as shown in this article.
When coding a WordPress site, you often need to get a category ID. If you ever wanted to be able to get a category ID from the category name, then just read this recipe, I’m pretty sure you will like it.
Many bloggers are using Feedburner “chicklet” to display their subscribers count. If you want to be able to display the count for an average 7 days, here is a piece of code you’re going to love.
I recently shown you jow you can create a post or a comment programatically, which is very usefull when creating advanced WOrdPress themes or plugins. Today, let’s have a look at another killer snippet: Add categories or tags to a posts, programatically.