How do I get a selected attribute term description to show on the page?
May 8, 2013 12:12 PM   Subscribe

I am working in Wordpress with the Whitelight theme. I'm pretty new but know enough to be dangerous :) I have set up my attribute terms and added it to the variable product's page. Since they are scents, I would like to have the description (that I wrote when creating the term) appear on the product page. How this possible? Thanks! Happy Day!
posted by Snackpants to Computers & Internet (5 answers total)
 
So what you have are custom fields you've added to individual items? If so, then you'll be using get_post_meta() calls to get those out. More details required about where you're entering this data, if you're using custom post types, whether this is theme dependent, etc.
posted by artlung at 1:07 PM on May 8, 2013


Response by poster: I'm not working in the custom fields section of the product. The best I can explain it is that I am setting up a "global" custom attribute for all products - this is where my description is input. Then, I edit the individual products by calling it a variable product and choosing from a list of terms that I set up in the first set. This does yield a proper drop down box with the terms I've chosen for that product. I would like for the description that I wrote for that term within the attribute. Does that make sense?
posted by Snackpants at 1:24 PM on May 8, 2013


What plugins are you using to get these fields? Are you using Advanced Custom Fields? Or something else?

You're speaking far too generally. WP is very customizable but I still don't have a sense of how you're inputting these "globals" and so don't have an idea of where they're getting stored. So, I have no idea how to programmatically retrieve them.
posted by artlung at 1:28 PM on May 8, 2013


Response by poster: Okay, like I said, I know enough to be dangerous so I truly apologize for my faulty question and thank you for your patience! I assume that WooCommerce is the plug in that affects this. Whitelight is a WooCommerce theme.
posted by Snackpants at 1:36 PM on May 8, 2013


This, then: Create Custom Fields and Taxonomies then adding them to the view a la Single Product.

Sorry, I don't know much about WooCommerce. I suspect what you actually need is a WooCommerce expert. Add that to the tags on your question.
posted by artlung at 1:40 PM on May 8, 2013


« Older chronic tooth inflammation turned acute-- what to...   |   I need help finding motivation to study when I can... Newer »
This thread is closed to new comments.