• 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)
  • The quickest search of the plugins section here for “database lookup” produced this: https://ww.wp.xz.cn/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.ww.wp.xz.cn/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.