How To Get Post Thumbnail URL In WordPress

WordPress has had post thumbnail feature since version 2.9. But untill now, there isn't offical function to get post thumbnail url. The get_the_post_thumbnail() function is very close, but it only returns HTML code. Of course we can parse this code … [Read more...]

Quick Tip: “e” Modifier For Regular Expression

There's a question about regular expression on WPQuestions yesterday that received some interesting solutions. The question is replace all semicolons between [[ and ]]. I myself found a solution uses "e" modifier which I think interesting. … [Read more...]

Validate Email Address In WordPress

Validate email address is very common task for all web developers. An usual method is using regular expression. This is strong method and works in most cases. But in WordPress, we don't have to spend plenty of time thinking about validation pattern. … [Read more...]