[wp-hackers] Passing info between shotcodes
Stefano Aglietti
steagl4ml at gmail.com
Mon Feb 9 17:06:13 GMT 2009
On Sun, 8 Feb 2009 20:49:42 +0100, Daiv Mowbray <daiv at daivmowbray.com>
wrote:
>I do something similar :
>
>// in the short code function, opdate options if any changes with
>shortcode
>// you could simply update an array of your choice.
>// Here I update the plugin options based on the shortcode atts.
>
> if ($atts !='') $this->change_options($atts);
>
> function change_options( $atts ){
> $this->OpOut = array_merge($this->OpOut, array_filter($atts));
>
> return $this->OpOut;
This as the way i keep ad alternative one, usign options to pass
parameters to 2 shortdcodes during a post rendering is not something I
would use if there is another way.. but looks like it's the only one.
Thanks for the help
--
Stefano Aglietti - StallonIt on IRCnet - ICQ#: 2078431
Email: steve at 40annibuttati.it steagl at people.it
Sites: http://www.40annibuttati.it (personal blog)
http://www.wordpress-it.it (WordPress Italia)
More information about the wp-hackers
mailing list