title: Advanced Custom Fields for Taxonomies (WordPress)
body: <p>I'm setting up a <a href="http://foundlocal.co" rel="nofollow noreferrer">marketplace-style website</a> for local furniture makers and vintage shops, using WordPress with WooCommerce and the WooCommerce Vendor Stores plugin. In order to create more complete vendor profiles, I'm using Advanced Custom Fields to add new fields to the vendor stores, which are taxonomies.</p>
  
  <p>Here's what I've done so far:</p>
  
  <ol>
  <li>Installed ACF and created a field group and custom field.</li>
  <li><p>The custom fields will need to be on my vendor pages, which are set up as taxonomies via the Vendor Stores plugin so I added this code to the template:  </p>
  
  <pre><code>&lt;?php the_field('vendor-style'); ?&gt;
  </code></pre></li>
  </ol>
  
  <p>Nothing appeared when I uploaded the file, added some info to a vendor profile and saved.</p>
  
  <ol start="3">
  <li><p>I figured it was something with the taxonomy thing, so I then looked up some info about including terms, and tried this (vendor-store is the taxonomy term).</p>
  
  <pre><code>&lt;?php the_field('vendor-style', 'vendor-store'); ?&gt;
  </code></pre></li>
  <li><p>Nothing showed up, so I tried following this advice:  <a href="https://stackoverflow.com/questions/25548276/acf-fields-not-showing-on-a-wordpress-custom-taxonomy-page">ACF fields not showing on a wordpress custom taxonomy page</a>  and that didn't work.</p></li>
  </ol>
  
  <p>When I turned on debugging, I got the following error message on my <a href="http://foundlocal.co/vendor/isabella-sparrow" rel="nofollow noreferrer">vendor page</a>:</p>
  
  <p><em>Notice: Trying to get property of non-object in /nas/wp/www/cluster-2626/foundlocal/wp-content/themes/hub/includes/integrations/woocommerce/template.php on line 124
  class="archive tax-shop_vendor term-isabella-sparrow term-52 logged-in admin-bar no-customize-support woocommerce woocommerce-page woocommerce-demo-store ignitewoo_vendor_stores vendor_store isabella-sparrow chrome alt-style-default layout-left-content has-lightbox "></em></p>
  
  <p>The line that this error message is referring to is:        </p>
  
  <p>$single_layout = get_post_meta( $post->ID, '_layout', true );</p>
  
  <p>Anyone have any suggestions? I'm trying to finish this today, and feel like I'm just spinning in circles at this point.</p>