Community Support Forums — WordPress® ( Users Helping Users ) — 2011-06-07T11:28:37-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=6687 2011-06-07T11:28:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6687&p=20322#p20322 <![CDATA[Re: converting unix timestamps in shortcode]]>

Statistics: Posted by Cristián Lávaque — June 7th, 2011, 11:28 am


]]>
2011-06-07T10:48:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6687&p=20321#p20321 <![CDATA[Re: converting unix timestamps in shortcode]]>
Jim

Statistics: Posted by doctorproctor — June 7th, 2011, 10:48 am


]]>
2011-06-07T02:07:21-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6687&p=20301#p20301 <![CDATA[Re: converting unix timestamps in shortcode]]>
Code:
echo date('l F jS, Y'get_user_option('wp_s2member_auto_eot_time'$user_id)); 


http://codex.wordpress.org/Function_Ref ... ser_option

I hope that helps. :)

Statistics: Posted by Cristián Lávaque — June 7th, 2011, 2:07 am


]]>
2011-06-06T20:01:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6687&p=20283#p20283 <![CDATA[Re: converting unix timestamps in shortcode]]>
Thanks,

Jim

Statistics: Posted by doctorproctor — June 6th, 2011, 8:01 pm


]]>
2011-06-04T00:17:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6687&p=16681#p16681 <![CDATA[Re: converting unix timestamps in shortcode]]> viewtopic.php?f=36&t=1604 :)

Statistics: Posted by Cristián Lávaque — June 4th, 2011, 12:17 am


]]>
2011-06-04T00:16:10-05:00 http://www.primothemes.com/forums/viewtopic.php?t=6687&p=16680#p16680 <![CDATA[converting unix timestamps in shortcode]]> 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

Statistics: Posted by doctorproctor — June 4th, 2011, 12:16 am


]]>