Title: mysql value in shortcode?
Last modified: December 15, 2020

---

# mysql value in shortcode?

 *  Resolved [stonefunk](https://wordpress.org/support/users/stonefunk/)
 * (@stonefunk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/mysql-value-in-shortcode/)
 * Hej.
    Is there a way to safely make a shortcode of a database value. How should
   that code look like. I knowe som sql and some C# but i’m a new ti this web/datanase
   thing.
 * I like to put a database value in a textfield/dropdown inside “Caldera Forms”.
 * /Svante

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

 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/mysql-value-in-shortcode/#post-13790917)
 * Hi [@stonefunk](https://wordpress.org/support/users/stonefunk/),
 * Thanks for using Shortcoder.
 * With shortcoder it is not possible to use SQL since it accepts only static code
   like HTML/CSS/Javascript.
 * You can however write some JS to do some API call where in the backend you can
   write the SQL query using PHP. However it is beyond the scope of the plugin.
 * Thanks,
    Aakash
 *  Thread Starter [stonefunk](https://wordpress.org/support/users/stonefunk/)
 * (@stonefunk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/mysql-value-in-shortcode/#post-13791582)
 * Thank for your reply [@vaakash](https://wordpress.org/support/users/vaakash/).
 * Is it maybe possible to use MySql stored procedures instead then in shortcoder.
   
   I belive there is a market for non coding database handling. 🙂
 * Most people use a formbuilder lika Caldera Forms and maybe a database tool like
   WP data Access. The one missing piece is to easy put a database value in a form
   textbox or dropdown.
 * Maybe it is really easy in PHP and that is why such plugin dont exist but i really
   dont want to edit my complex theme directly in the PHP-code so it chrashes. Therefore
   i got exited about Shortcoder that my Colibri Theme recommended. It would be 
   fantastic to make “magic tags” in a plugin like Shortcoder.
 * /Svante
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/mysql-value-in-shortcode/#post-13792322)
 * Hi [@stonefunk](https://wordpress.org/support/users/stonefunk/),
 * Actually, with shortcoder you can use only static content like mentioned earlier.
   Anything dynamic won’t work.
 * There are many plugins out there which support PHP and you can create shortcode
   for that – [https://wordpress.org/plugins/insert-php-code-snippet/](https://wordpress.org/plugins/insert-php-code-snippet/)
 * Creating a shortcode is also very easy which you can do without a need of a plugin–
   [https://developer.wordpress.org/reference/functions/add_shortcode/](https://developer.wordpress.org/reference/functions/add_shortcode/)
 * Shortcoder is useful if you have a HTML/CSS/JS snippets which you want to use
   multiple places and create a shorcode for the same.
 * Thanks,
    Aakash
 *  Thread Starter [stonefunk](https://wordpress.org/support/users/stonefunk/)
 * (@stonefunk)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/mysql-value-in-shortcode/#post-13792495)
 * Great, thank you [@vaakash](https://wordpress.org/support/users/vaakash/).
 *  Plugin Author [vaakash](https://wordpress.org/support/users/vaakash/)
 * (@vaakash)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/mysql-value-in-shortcode/#post-13884798)
 * Marking this as resolved.

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

The topic ‘mysql value in shortcode?’ is closed to new replies.

 * ![](https://ps.w.org/shortcoder/assets/icon.svg?rev=2222236)
 * [Shortcoder — Create Shortcodes for Anything](https://wordpress.org/plugins/shortcoder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortcoder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortcoder/)
 * [Active Topics](https://wordpress.org/support/plugin/shortcoder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortcoder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortcoder/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [vaakash](https://wordpress.org/support/users/vaakash/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/mysql-value-in-shortcode/#post-13884798)
 * Status: resolved