Support » Plugin: Airpress » Group in two levels

  • Hi,
    first of all great work …

    I’ve a litte problem, have a airtable table named DRINKS and there a view called Getraenk (appr. 500 entries). Conntection is running, I used Virtual Posts.

    On my tests I got all entries, thats fine – but I wanna group them.
    There are columns called Categorie, Subcategorie, Title, Price.

    I wanna group Categories and in this Subcategories and then schould come the details.
    Tried different ways – but it wont work right.

    Output should be
    Categorie
    – Subcategorie
    — Details
    – Subcategorie
    — Details
    — Details
    Categorie
    – Subcategorie
    — Details
    – Subcategorie
    — Details
    — Details

    Is there a way, a turtorial, a example?

    Thanks
    Sascha

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author chetmac

    (@chetmac)

    If Categories was a related table, you could configure your VirtualPost to fetch Categories and then populate those records with the related Drinks. Then you could loop/iterate through the Categories which would allow you to show them as “grouped”.

    Otherwise you’ll need a little bit of custom PHP in order to either group the records or to sort them by category and detect when the category changes. I typically recommend creating a custom shortcode in your functions.php file that handles this.

    Thread Starter sascharet

    (@sascharet)

    Hi again,
    and you have maybe a example for the structure in shortcodes?

    Sascha

    Thread Starter sascharet

    (@sascharet)

    Hi chetmac.

    I typically recommend creating a custom shortcode in your functions.php file that handles this.

    Could you please help me on this?

    Sascha

    Plugin Author chetmac

    (@chetmac)

    Currently I’m only providing custom support/consulting if you reserve some of my time at calendly.com/chetmac

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Group in two levels’ is closed to new replies.