get post meta for 2 keys
-
Hi,
I am using this code without a problem to printf the key1 value of a post:
<?php $meta = get_post_meta( $post_id, $KEY1, $single ); ?>
<?php printf( $meta ); ?>Now I have a KEY2 as well for the same $meta. Can you help what is the code to printf key1 when key2 is empty and viceversa?
Thanks for your help.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘get post meta for 2 keys’ is closed to new replies.