0

I have a meta_key in wp_postmeta called _su_description.

How do I output its value?

1 Answer 1

0

If you want to get post meta, then you just need to call get_post_meta() function and pass three arguments: current post id, your meta key and true value (what indicates that you want to receive only one value in return).

Simply call echo get_post_meta( get_the_ID(), '_su_description', true ); in your template and your meta value will be rendered.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.