Title: Order items post meta?
Last modified: October 25, 2017

---

# Order items post meta?

 *  Resolved [steveauchettl](https://wordpress.org/support/users/steveauchettl/)
 * (@steveauchettl)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/order-items-post-meta/)
 * Hi guys – love the plugin! I’m currently editing a template and able to use code
   such as `<?php $this->custom_field('Custom_field'); ?>` to display order post
   meta, but do you know how I can display order items post meta details (order_itemmeta)?
   
   Thanks Steve

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

 *  Plugin Contributor [kluver](https://wordpress.org/support/users/kluver/)
 * (@kluver)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/order-items-post-meta/#post-9622380)
 * hi [@steveauchettl](https://wordpress.org/support/users/steveauchettl/),
 * Within the item loop you can add the following code to retrieve specific item
   post meta:
 * `<?php $item_meta = wc_get_order_item_meta( $item['item_id'], 'item_meta_key',
   true ); ?>`
 * Just replace the item_meta_key with the meta key of choice.
    I hope this answers
   your question.
 * Have a great day!
 * Michael
 *  Thread Starter [steveauchettl](https://wordpress.org/support/users/steveauchettl/)
 * (@steveauchettl)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/order-items-post-meta/#post-9624082)
 * Hi Michael
 * Very helpful thank you – i’ve nearly got it working… once you call the item, 
   then when you then go to show it on the page would you be using something like
   this? `<?php echo $item_meta['item_meta_key']; ?>`
 * Cheers again! Much appreciated 🙂
 *  Plugin Contributor [Ewout](https://wordpress.org/support/users/pomegranate/)
 * (@pomegranate)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/order-items-post-meta/#post-9625892)
 * Hi Steve, with michaels example, the meta data is already in `$item_meta`. You
   can also echo it out directly (assuming it’s a string):
 *     ```
       <?php echo wc_get_order_item_meta( $item['item_id'], 'item_meta_key', true ); ?>
       ```
   
 * Ewout
 *  Thread Starter [steveauchettl](https://wordpress.org/support/users/steveauchettl/)
 * (@steveauchettl)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/order-items-post-meta/#post-9626591)
 * Fantastic many thanks!

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

The topic ‘Order items post meta?’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-pdf-invoices-packing-slips/assets/icon-256x256.
   png?rev=2189942)
 * [PDF Invoices & Packing Slips for WooCommerce](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-pdf-invoices-packing-slips/reviews/)

## Tags

 * [item meta](https://wordpress.org/support/topic-tag/item-meta/)

 * 4 replies
 * 3 participants
 * Last reply from: [steveauchettl](https://wordpress.org/support/users/steveauchettl/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/order-items-post-meta/#post-9626591)
 * Status: resolved