Displaying a product's custom field information
-
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?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Displaying a product's custom field information’ is closed to new replies.