[resolved] Displaying a product's custom field information (4 posts)

  1. Preeminent
    Posted 3 years ago #

    So I'm familiar with displaying a normal wordpress post's custom field info with: echo get_post_meta($post->ID, 'custom_field', true); and I have seen that changing "$post->ID" to "$order_id" might be what I need, but I don't want to specifically pick an item's order number in my custom template each time I post an item. On my homepage, I will be showing ONE item from a certain cagegory only. Only one item at a time,always the newest in the category, and I just need to pull the custom field information from the newest item every time I post a new item up for sale. Can anyone point me in the right direction?


  2. Preeminent
    Posted 3 years ago #

    Sorry folks. Got it. It works fine. I actually was experimenting with a traditional post with all the same custom field data, and it was pulling the information from that post instead of the product.

  3. rosiee007
    Posted 3 years ago #

    I'm stuck on this too, if you could help me out, that would be great. I have added 'Manufacturer' as a Custom Field for my products. I want to display the manufacturer on the product detail page, but I cannot figure out which file to make the changes in and which changes to make!

  4. Preeminent
    Posted 3 years ago #

    Oh wow, it's been a while since I did this. I will see if I can find out what I did again, when I get a chance.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic