This topic contains 2 replies, has 3 voices. Last updated by cassel 4 years, 1 month ago.
Topic Author | Topic |
---|---|
Posted: Monday Nov 12th, 2012 at 7:35 am #31288 | |
HI. I cannot get php to work on my site. Yes – I’ve tried everything – disabling all plugins, default theme, reinstalling S2Member. I’ve tried PHP Execution, Exec-PHP and Raw HTML plugins. Nothing works. The php just displays as text on the page. But shortcodes do work. So, as a workaround I want to create a shortcode to replace this php:
I’m thinking something along the lines of:
Then I just enter the number of days as required. So far I have this:
But, I’m still learning php, so I don’t know how to grab the shortcode variable (eg 30 days), compare it to their rego days and then return true or false. Could someone please point me in the right direction?? Thank you so much |