PHP Timestamps can be very useful in programming and tracking possible modifications which could have been made. The mktime() function in PHP is a powerful tool that returns UNIX timestamps of a given date. The mktime() function shows the number of seconds passed from 1st January 1970 to a given date. 1st January 1970 is taken to be the starting date for the OS and hence all the timestamp values are generated by keeping this as the base. This can be used to calculate the time elapsed across a wide range of varieties including the last 24 hours, yesterday, last week, this week, last month, etc…Read More Category: PHP, Tutorials
Web Design Blog – CSS Tutorials, jQuery Tutorials, SEO Tips, Learning Advice, Personal News, and More
I recently had a project that required me to use Wordpress shortcode inside a Wordpress excerpt. Anybody who is familiar with Wordpress will tell you that: Wordpress does not allow you to use shortcode in excerpts!
You see, you can use shortcodes for anything called through the_content() function, but the shortcode will be displayed as-is when the same post is called through the_excerpt() function. According to the Wordpress Codex, no code or html tags are executed in the_excerpt() function.