How to view table meta key post value?
-
How do I view post value, table meta_key? I have to retrieve a value from a post that is in a meta_key in a table. I think that in order to import the correct meta_key values, I have to import the test_id which is the id, which is in the table. how do I do that? Thanks in advance. ??
<?php global $wpdb; $echo_options = $wpdb->get_col("SELECT DISTINCT(meta_value) FROM $wpdb->table_test WHERE meta_key = 'test_options'" ); echo "$echo_options"; ?>
Sorry bad english
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to view table meta key post value?’ is closed to new replies.