Title: A plugin to replace shortcode with data
Last modified: August 30, 2016

---

# A plugin to replace shortcode with data

 *  [Iudex](https://wordpress.org/support/users/iudex/)
 * (@iudex)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/a-plugin-to-display-replace-shortcode-with-data/)
 * I’m making a WordPress site for a small hotel. They want their prices on individual
   pages. When they change prices, it will be an extensive job (different rooms,
   languages etc.).
 * Is there a plugin or so, where I can make a table in backend (like a spreadsheet),
   lets say:
 * Room – Adults – Children
    1 – 200 – 50 2 – 150 – 50
 * And then use this data using shortcode, like for example [room-1-adult], which
   then shows ‘200’.

Viewing 1 replies (of 1 total)

 *  [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * (@rossmitchell)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/a-plugin-to-display-replace-shortcode-with-data/#post-6888790)
 * The quickest search of the plugins section here for “database lookup” produced
   this: [https://wordpress.org/plugins/sql-table-lookup/](https://wordpress.org/plugins/sql-table-lookup/)
   
   There are bound to be many others. Suggest that you download and experiment with
   a few of them. Suggest that you create a custom table for your data, though it
   could be incorporated into existing tables as various options or metadata etc.
 * An excellent design decision to centralise the maintenance of this critical pricing
   information. Suggest that you keep statistics on how often the different prices
   get displayed. Also keep track of any price queries which don’t find matches 
   in your data, this will help you track down obsolete or incorrect price references.
 * There are various ways to pass parameters to shortcode functions, details here:
   [http://codex.wordpress.org/Shortcode_API](http://codex.wordpress.org/Shortcode_API)
   
   Again experiment with the different variations.

Viewing 1 replies (of 1 total)

The topic ‘A plugin to replace shortcode with data’ is closed to new replies.

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/a-plugin-to-display-replace-shortcode-with-data/#post-6888790)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
