PHP Get data
-
Hello again, i needed to use the data sent from a previous form with a shortcode, i went all around the web looking for a plugin to achieve this but i didnt find any, so i wrote this function:
function php_get( $atts ) {
$php_decode = urldecode($_GET[$atts[‘name’]]);
$php_decode);
return $php_result;
}It worked fine, now when i use this shortcode [php_get name] i get the name from the url ?name=”someone”, maybe this function should be considered for this plugin, but now mi question is:
how can i use that data inside a shortode loop?
i tried with {php_get name} but it didnt work, i used the shortcode inside a custom field, when i call the field like [field php] it works but when i try to use it inside a shortoce like:
[pass field=”php][loop type=”{FIELD}”]
it doesnt work, is there anyway i could use this function inside a shortcode?
- The topic ‘PHP Get data’ is closed to new replies.