Title: Problem dynamically populating charts using nested shortcode.
Last modified: August 22, 2016

---

# Problem dynamically populating charts using nested shortcode.

 *  [handyandywilson](https://wordpress.org/support/users/handyandywilson/)
 * (@handyandywilson)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/problem-dynamically-populating-charts-using-nested-shortcode/)
 * Hello,
 * I am trying to populate my charts with dynamic data all pulled from custom post
   types. I am using ‘wp-types’ and ‘views’ to generate this and it comes in the
   form of a shortcode (‘Data String’ for values and ‘Date String’ for dates), so
   I am trying to integrate this data into wp-charts as follows…
 * > [wp_charts … datasets=”[wpv-view name=’Data String’]” labels=”[wpv-view name
   > =’Date String’]”]
 * However this just cocks up the chart as the nested shortcode contains additional
   quotes. I have tried using single and double quotes without any luck.
 * I have read about do_shortcode function and feel this is what is preventing the
   insertion of this shortcode, however I am unsure about how and where to add do_shortcode
   to wp-charts’ code.
 * I you have any answers or suggestions I will be extremely grateful.
 * Cheers guys,
 * Andrew
 * [https://wordpress.org/plugins/wp-charts/](https://wordpress.org/plugins/wp-charts/)

The topic ‘Problem dynamically populating charts using nested shortcode.’ is closed
to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-charts_b1d6e1.svg)
 * [WordPress Charts](https://wordpress.org/plugins/wp-charts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-charts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-charts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-charts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-charts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-charts/reviews/)

## Tags

 * [do_shortcode](https://wordpress.org/support/topic-tag/do_shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [handyandywilson](https://wordpress.org/support/users/handyandywilson/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/problem-dynamically-populating-charts-using-nested-shortcode/)
 * Status: not resolved