How to fetch all meta_key and meta_value using post_id wihout duplication
-
How to fetch all meta_key and meta_value using post_id wihout duplication of post meta using sql query.
This query is repeting the post meta each time .$sql=”SELECT * FROM wp_posts
LEFT JOIN wp_postmeta
ON wp_posts.ID= wp_postmeta.post_id
where post_type=’property'”;
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to fetch all meta_key and meta_value using post_id wihout duplication’ is closed to new replies.