SQL Statement
-
Hi,
I try to add for the export a field based on a SQL Query.
I want to use the ID from the current object to select an item.
I tried this:
SELECT post_id FROM wp_postmeta WHERE meta_key LIKE ‘_wpcf_belongs_anbieter_id’ AND meta_value = ID Limit 1;
But this doesn’t work.
If I change from ID to 153 ( the id ?? ) it works well.
I use a wp-types custom post type.Thanks for support
Stefan
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘SQL Statement’ is closed to new replies.