• Resolved mazoola

    (@mazoola)


    After having trouble getting Airpress to perform as expected, I decided to step through your examples as given, but with no luck. I then went to a new installation with only Airpress loaded — and I am still having the same issues.

    For instance, after configuring Virtual Fields and defining the ‘Burgers’ post as shown in your screenshots, any attempt to display that post results in the entry_title being displayed, but after the entry_content div is opened, nothing else is written. Debug shows only this:

    200 1 0.53 Cuisines?filterByFormula=OR({Name} = “Burgers”)
    200 4 0.39 Restaurants?filterByFormula=AND(OR(…one of 4 ids…),OR(…one of 4 ids…))

    If I rename the ‘Restaurants’ field in the Cuisines table to ‘RestaurantName’ and change the first line of the post to

    . [apr_populate field=”RestaurantName” relatedTo=”Restaurants”]

    then the post page finishes correctly, but no Airtable data are displayed.

    Changing the next line of the post to read

    . [apr field=”RestaurantName|Name” glue=”, “]

    gives me the comma-separated list of restaurant names as anticipated, but nothing from within the loop.

    Changing the loop field name to ‘RestaurantName’ again hangs WordPress as in the first instance, but changing it to ‘RestaurantName|Name’ *does* cause it to loop 4 times — as long as I don’t include any {{field names}} within the loop. Any attempt I make to access field names within the loop causes the page to hang after the entry-content div is opened.

    In all of these cases, the only thing written to the logfile are the two lines shown above.

    I have to assume there’s something incredibly basic I’m overlooking, here — but, try as I may, I’m still overlooking it.

    Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mazoola

    (@mazoola)

    Using [apr_loop]..[/apr_loop] gets me closer; the page doesn’t hang, and I’m able to return to using ‘Restaurants’ as the name of the field in the Cuisines table.

    However, {{Name}} within the loop returns only ‘Burgers’; {{Restaurants|Name}} returns the comma-delimited list of restaurant names….

    Plugin Author Chester McLaughlin

    (@chetmac)

    Thank you for your feedback. I dug into the plugin and found/fixed a bug. Please update to 1.1.25 (just released) and try again and let me know how it goes!

    Thread Starter mazoola

    (@mazoola)

    Great! I’ll give it a try.

    BTW, using [apr_loop] without a field allowed me to access the records in my actual airtable database as I had initially intended. If I’d known about that, I never would have stumbled across this other issue. ??

    Thread Starter mazoola

    (@mazoola)

    Perfect! That fixed it — your screenshot configurations are good-to-go again…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘trouble reproducing examples’ is closed to new replies.