michalmic
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [WordPress Charts] Tips on how to use dynamic datathis kind of code you put to template:
<?php
echo do_shortcode( ‘[wp_charts title=”mypie” type=”pie” align=”alignright” margin=”5px 20px” data=”1,2″]’ );
?>and this kind into pages or posts:
[wp_charts title=”mypie” type=”pie” align=”alignright” margin=”5px 20px” data=”1,2″]
Forum: Plugins
In reply to: [WordPress Charts] Tips on how to use dynamic dataHi João Miguel, thanks for your help. It works, but I had to use global variables:
<?php $GLOBALS['data'] = "1,2,3"; echo do_shortcode( '[wp_charts title="mypie" type="pie" align="alignright" margin="5px 20px" data="'.$GLOBALS['data'].'"]' ); ?>Thanks for help.
Forum: Plugins
In reply to: [WordPress Charts] Tips on how to use dynamic dataCould you help me with echo do_shortcode. I use this, as you showed with Allow PHP Execute and chart is not displayed. Other shortcodes work, but this with chart does not. There is only a background of chart without a content.
Code:
<p>Your IP Address is: <?php echo $_SERVER['REMOTE_ADDR']; ?></p> <p><?php echo do_shortcode('[mlw_quizmaster quiz=34]'); ?><br /> <?php echo do_shortcode('[wp_charts title="poebar" type="bar" align="alignright" margin="5px 20px" data="1,2"]'); ?></p>looks like that:
http://prawdziwyskarb.pl/test-do-shortcode/Could you help me with that?
Viewing 3 replies - 1 through 3 (of 3 total)