Show pods custom field into single product template
-
Hello, i have created a custom post types “Artists” for my record store with Pods; i want to display into each single product (records), so i have created a custom field “artist” as a related type (Artists) to show into product backend a drow-down menu where i can select the related artist.
I have add this code into the content-single-product.php template:<?php echo get_post_meta($post->ID, 'artist', true); ?>
I see the item on the product page, but instead of reading the artist name, I read “Array”.
Where i’m wrong please?
Thanks for any helpThe page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Show pods custom field into single product template’ is closed to new replies.