• Resolved umlauts

    (@umlauts)


    Hey all,

    Working on a project for a client who is using the Team Showcase WordPress plugin to display mentors’ details on their site. They are wanting to have mentors’ info on their site automatically update when it is adjusted in Airtable, so naturally I setup the Airpress plugin to do so.

    The problem is that the Airpress shortcode is working in some places and not in others, and I am receiving an “ATTEMPTING TO BE USED ON A PAGE WHERE THERE IS NO COLLECTION” error.

    Mentors’ titles should be generated using:
    [apr field="Title for Webpage"] @ [apr field="Firm]
    (ex. Founder @ Cool Company)

    Mentor ROCHELLE WEBB is my current test example.

    On Rochelle’s individual team page, the title shows up fine. The code successfully pulls her title / firm from Airtable: “President & CSO @ The Dialectic Compound.” (Ignore the horrendously large image on this page.)

    https://makeinla.com/team/rochelle-webb/

    BUT…Each mentor’s Team Showcase page is also used to generate the Mentor Grid at the link below.

    https://makeinla.com/mentors/

    I get that “ATTEMPTING TO BE USED ON A PAGE WHERE THERE IS NO COLLECTION” error for the same details on this page. (Look for ROCHELLE WEBB again.)

    Screenshot of Rochelle: https://imgur.com/Lg6uWnO

    How can I fix this error? Stumped as to why it’s working in one spot and not another. I’m quite experienced with Airtable, but I’m a WordPress novice, so I’m hoping this is an easy “duh!” fix.

    I’ve double-checked the following:
    – Virtual Fields is setup correctly using tshowcase post type and post_title
    – Name on WordPress Title and Airtable Column are exactly the same
    – I’ve refreshed the cache (/?fresh=true).
    – I’ve double checked the Connection and Configuration.

    I’m wondering if I need to setup a second Virtual Fields configuration for the /mentors grid page? Just not sure what configuration I would use for this one.

    Many thanks!

    The page I need help with: [log in to see the link]

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

    (@chetmac)

    This is truly strange! Are you using the loop shortcode? What is your VirtualFields configuration? Can you post the shortcodes or php you’re using to generate this output?

    One thing to try is using VirtualPosts and not VirtualFields.

    Create two regular WordPress Pages called “AIRPRESS: Mentors Lists” and “AIRPRESS: Mentors Item”. these will be the “templates” for displaying/rendering your data.

    The first page (mentors list) is a little confusing as you’re making a template that will be used with exactly 1 url—so why use VirtualPosts for that? The reason is because VirtualPosts allow you to use a FilterByFormula to retrieve your list of mentors.

    Create two VirtualPost configurations, one utilizing each template.

    The VirtualPost configuration for the mentor list should look something like this: https://imgur.com/k9et3Cf

    There is no FilterByFormula so it will return all records from the Mentors table.

    The VirtualPost configuration for the mentor item should look something like this: https://imgur.com/cyOhCe7

    If that’s unhelpful, hit me up using the contact form at https://chetmac.com and we’ll schedule a screenshare meeting to debug.

    Plugin Author Chester McLaughlin

    (@chetmac)

    I’ve added some additional debug output on VirtualPost configs. any luck switching to using VirtualPosts instead of VirtualFields?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Virtual Fields “No Collection” error’ is closed to new replies.