WordPress: Automatically Expire Posts After Specific Date/Time

Thursday, October 20th, 2011

Some time you may not want to keep a post published on your wordpress blog e.g. announcing some promotion, events etc. Instead of permanently deleting that post you may hide/expire that from your articles. For the purpose you can replace the existing posts looping code with the following in your ...

PHP Function To Remove HTML Tags From String

Monday, October 17th, 2011

You may need to remove (strip) HTML from your data to get plain text, For the purpose PHP has a built-in function strip_tags(), Basic syntax is as below