| Dante Monaldo |
Feb 25 2012, 02:58 AM
Post
#1
|
|
Advanced Member ![]() ![]() ![]() ![]() Group: Members Posts: 124 Joined: 22-March 09 From: California, USA Member No.: 8,132 |
I wrote a simpe PHP script and have been trying to return the results in WordPress shortcodes, but I can't seem to get it to work. Here is what I have:
CODE function securetotal() { return $secure_total; } add_shortcode('secure', 'securetotal'); $secure_total is the predefined variable that I need to be displayed. I can display simple text instead of the variable, but the variable is not transferring any results. Am I missing something? Any ideas? BTW, I did post this on the Wordpress forum, but didn't get any replies, so I'm hoping someone here can shed light on it. Help is much appreciated. -------------------- ~ Dante Monaldo
|
Dante Monaldo PHP Variable in Wordpress Shortcode Feb 25 2012, 02:58 AM
Brian Chandler
I wrote a simpe PHP script and have been trying t... Feb 25 2012, 04:48 AM
Dante Monaldo Okay, the problem was that the variable was not gl... Feb 25 2012, 12:08 PM![]() ![]() |
|
Lo-Fi Version | Time is now: 23rd May 2013 - 07:28 PM |