Title: Custom Short Code &quot;show=&quot;
Last modified: August 31, 2016

---

# Custom Short Code "show="

 *  Resolved [andywt](https://wordpress.org/support/users/andywt/)
 * (@andywt)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-short-code-show/)
 * I am writing a custom short code that inserts a hyperlink in the report. I can
   get everything to print correctly using the printf technique that you use in 
   your custom shortcode faq, but the data is not tabular. I’d like to output the
   report in the format that your cfdb-datable shortcode outputs. I tried using 
   the “show=” in my shortcode but it does not seem to do anything.
 * Is it possible to utilize your datatable formating?
 * [https://wordpress.org/plugins/contact-form-7-to-database-extension/](https://wordpress.org/plugins/contact-form-7-to-database-extension/)

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

 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-short-code-show/#post-7308321)
 * To do that, I suggest use the [cfdb-datatable] short code, but write a custom
   [transform function](http://cfdbplugin.com/?page_id=1076) or [transform class](http://cfdbplugin.com/?page_id=1095)
   to change or add data that is coming into the shortcode.
 *  Thread Starter [andywt](https://wordpress.org/support/users/andywt/)
 * (@andywt)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-short-code-show/#post-7308363)
 * Thanks Mike. Is there a trick to the transform returning a hyperlink? I am returning
   the proper HTLM string for the link but it just displays as a string of text.
 *  Plugin Author [Michael Simpson](https://wordpress.org/support/users/msimpson/)
 * (@msimpson)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-short-code-show/#post-7308381)
 * Hmm…Now that I think of it, I think there is code to try to prevent HTML & Javascript
   injection so your produced link is output as literal text.
 * You might just have it produce the link, then add some jQuery to make it an active
   link. See: [http://cfdbplugin.com/?p=867](http://cfdbplugin.com/?p=867)
 *  Thread Starter [andywt](https://wordpress.org/support/users/andywt/)
 * (@andywt)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-short-code-show/#post-7308384)
 * That did the trick. Thanks!!

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

The topic ‘Custom Short Code "show="’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-database-extension_ffffff.
   svg)
 * [Contact Form DB](https://wordpress.org/plugins/contact-form-7-to-database-extension/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-to-database-extension/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-database-extension/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [andywt](https://wordpress.org/support/users/andywt/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/custom-short-code-show/#post-7308384)
 * Status: resolved