300 posts on my blog – not a very small number

Confuscius said “It does not matter how slowly you go so long as you do not stop”. Interesting is that I learned about this quote just few minutes ago and when I knew about it, I thought slowly (without stopping) I have published 300 blog entries on this blog.

A few days ago, when I published my latest blog How I have solved the “The plugin generated xxxx characters of unexpected output during activation problem…” I did not notice that it was my 300th published post on this blog. I noticed it later and tweeted about it. Few friends also responded me with congrats. Thanks to all of them.

Today after reading the quote of the Confucius, I thought it is worthy to write a blog about my 300th blog post. Why? What’s the specialty of 300? Continue reading →

How to avoid or skip Trash in WordPress

If you come to this post, it is highly possible that yo are already annoyed by the Trash feature of WordPress that was introduced in its version 2.9.

I personally find it very helpful in live sites but I believe no one than me is annoyed most by it on development site. However, WordPress is always sweet and its programmers has longer nose. So they put a configurable option to adjust it.

All you need is to add a line in wp-config.php file. You will need to add a constant like:

define('EMPTY_TRASH_DAYS', 0);

That’s it. The trash button from your WordPress will just elope and your old loving Delete button will come back:).

One more thing, by default WordPress keeps stuffs in trash for 30 days. So if you want to keep the posts in Trash for 3 days, write like:

define('EMPTY_TRASH_DAYS', 3);