Title: short code not dynamic
Last modified: July 19, 2024

---

# short code not dynamic

 *  Resolved [morazain](https://wordpress.org/support/users/morazain/)
 * (@morazain)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/short-code-not-dynamic/)
 * I created a short code that dynamically changes the query in a pie chart whose
   source is a Database Query and then renders the short code for the chart..
 * However after I make the change to the database table and commit it, do_shortcode(“[
   ays_chart id=’2]”) renders the pie chart that was created with the original query
   not the new value in the **_source_** field for that chart.
 * Is there a way to force it to recreate the pie chart programmatically?
    -  This topic was modified 1 year, 8 months ago by [morazain](https://wordpress.org/support/users/morazain/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Jasmine](https://wordpress.org/support/users/hyenokian/)
 * (@hyenokian)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/short-code-not-dynamic/#post-17904458)
 * Dear [@morazain](https://wordpress.org/support/users/morazain/),
 * Thank you for the topic.
 * Please let us know whether we understood your request correctly or not.
   You have
   chosen the Connect to Database source type, however, the data you are updating
   on the Database are not being changed on the front end.
 * If we understand the case correctly, please provide us with the following info
   for further investigation of the case.
 * 1. The link, where the given chart is located.
   2. Let us know whether yo are 
   using a Cache plugin or not.
 * Looking forward to your response.
 * Thank you.
 *  Plugin Support [Jasmine](https://wordpress.org/support/users/hyenokian/)
 * (@hyenokian)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/short-code-not-dynamic/#post-17922346)
 * Dear [@morazain](https://wordpress.org/support/users/morazain/),
 * We’re closing this ticket for now as we last heard from you 1 week ago.
 * If the query is unresolved, drop us a line and we’ll get back to you at the earliest
   and the ticket will be re-opened.
 * For a new query, feel free to open a new topic. Our Customer Care Specialists
   will be happy to help you.
 * Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘short code not dynamic’ is closed to new replies.

 * ![](https://ps.w.org/chart-builder/assets/icon-256x256.png?rev=2831026)
 * [Chartify - WordPress Chart Plugin](https://wordpress.org/plugins/chart-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/chart-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/chart-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/chart-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/chart-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/chart-builder/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jasmine](https://wordpress.org/support/users/hyenokian/)
 * Last activity: [1 year, 8 months ago](https://wordpress.org/support/topic/short-code-not-dynamic/#post-17922346)
 * Status: resolved