converting unix timestamps in shortcode
Posted: June 4th, 2011, 12:16 am
I want to convert the EOT timestamp into a normal date, ideally using shortcode to keep it simple. In another thread, you alluded to the possibility of converting a UNIX timestamp via PHP; can this work in conjunction with an s2 shortcode on a page?
I'm new to this, but it looks like in order to execute PHP within a WP page we need to use a plugin such as Shortcode Exec PHP. The PHP side of it is pretty simple, but can one execute a shortcode inside another shortcode in WordPress? I'd appreciate a simple example using
[s2Get user_option="s2member_auto_eot_time" /]
as my PHP script is not quite working yet. (I've got this nested inside an [s2If] statement.)
Thanks!
Jim
I'm new to this, but it looks like in order to execute PHP within a WP page we need to use a plugin such as Shortcode Exec PHP. The PHP side of it is pretty simple, but can one execute a shortcode inside another shortcode in WordPress? I'd appreciate a simple example using
[s2Get user_option="s2member_auto_eot_time" /]
as my PHP script is not quite working yet. (I've got this nested inside an [s2If] statement.)
Thanks!
Jim