• im making a digital invitation where I’m sending the link with different parameters to each guest so the invitation has the guest name and number of seats pulled out of a spread sheet, does that make sense? Is that posible on wordpress?

    thanks in advance.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yes, it is possible to do that. However, you will need to do some custom programming.

    Thread Starter enriqueborja

    (@enriqueborja)

    @imandresi any pointers on where I can research more about this?

    Yes. There are many ways to do it. The one that I will show you is compatible with all kind of themes that you may use whether it is classic, block, etc.

    You will have to create a custom plugin integrating shortcodes that will read your spreadsheet file, extract a specific field corresponding to an ID sent as a URL parameter, and finally display that content.

    ==== INSTRUCTIONS FOR USE ====

    Create your spreadsheet with the following columns as header:

    • ID
    • Name
    • Seats

    Those Names will be used to identify the column position when extracting a specific field field.

    Next, export that spreadsheet as a CSV file. (For example database.csv)

    ‘ID’ will contain a unique ID identifying the guest name records. This value will be sent as the URL parameter of the digital invitation. It is better not to use an incremented number to avoid people to iterate and see all the invitations.

    Design the page of the invitation and name it for example “invitation”. That page is then accessed as for example https://www.example.com/invitation/?id=XYZ

    'XYZ' will indicate the ID of the guest name in your spreadsheet for the extraction of the data to populate the invitation page.

    That invitation page, will contain some placeholders for the guest name and the number of seats. They will be filled using shortcodes. For example:

    [csv-data filename="database.csv" ID="XYZ" displayColumn="Name" ]

    This shortcode will be designed to read a CSV file named ‘database.csv', extract the line having 'XYZ' as ID and finally display the column named "Name".

    ==== IMPLEMENTATION ====

    You can find the implementation steps below:

    1. Create the plugin structure. https://developer.www.ads-software.com/plugins/
    2. Create the code for the shortcode. https://codex.www.ads-software.com/Shortcode_API
    3. The shortcode will execute the following actions:

    I hope this will help.

    Thread Starter enriqueborja

    (@enriqueborja)

    wow! Thanks @imandresi . That was very informative, though I think a little over my skills but I will sure read all the Info and learn about it for future protects, I think in the meanwhile I Will look for a plug-in or an easier way to put this together. Thanks a lot!

    Glad I could help you in certain way.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Add URL parameter to pull data from spreads sheet’ is closed to new replies.