Title: Virtual Fields &#8220;No Collection&#8221; error
Last modified: October 22, 2018

---

# Virtual Fields “No Collection” error

 *  Resolved [umlauts](https://wordpress.org/support/users/umlauts/)
 * (@umlauts)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/virtual-fields-no-collection-error/)
 * 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/](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/](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](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvirtual-fields-no-collection-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Chester McLaughlin](https://wordpress.org/support/users/chetmac/)
 * (@chetmac)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/virtual-fields-no-collection-error/#post-10805871)
 * 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](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](https://imgur.com/cyOhCe7)
 * If that’s unhelpful, hit me up using the contact form at [https://chetmac.com](https://chetmac.com)
   and we’ll schedule a screenshare meeting to debug.
 *  Plugin Author [Chester McLaughlin](https://wordpress.org/support/users/chetmac/)
 * (@chetmac)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/virtual-fields-no-collection-error/#post-10820693)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/airpress_c9d28c.svg)
 * [Airpress](https://wordpress.org/plugins/airpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/airpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/airpress/)
 * [Active Topics](https://wordpress.org/support/plugin/airpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/airpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/airpress/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Chester McLaughlin](https://wordpress.org/support/users/chetmac/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/virtual-fields-no-collection-error/#post-10820693)
 * Status: resolved