• Resolved HalAtkins

    (@halatkins)


    Hey folks-

    Was wondering if it would be possible to use a URL parameter to fetch and display information from a single AirTable record? For example…

    https://xxx.com/some-page?record-id=DIR167

    Can that parameter get passed to the Airpress loop, grab the info from Airtable in an array, and then displayed on the page?

    Ideally I’d like to have a sidebar widget that would make this a bit more modular.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chester McLaughlin

    (@chetmac)

    Absolutely.

    If you’ll be using this on (just about) every page/post, you’ll want to use Virtual Fields but if you’re only going to use this on one or two pages, it’d be more efficient to use Virtual Posts.

    Either way, there will be a URL fragment that must match a value in a specific Airtable column. The entire matching row will be saved into the WordPress $post->AirtableCollection object where it can be accessed via shortcodes such as [apr field=”My Other Field”].

    The other option is a completely custom shortcode that uses Airpress to do just about whatever you want.

    If you hit me up at https://codementor.io/chetmac I’m confident we can get the basics working in 30 minutes.

    Thread Starter HalAtkins

    (@halatkins)

    Messaging you now…..thanks for the support!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Use URL parameter to retrieve (and display) AirTable record?’ is closed to new replies.