I have a repeater field on a page, in that field i have a post object field and a few text fields. The post object field just gets the ID of whatever post you set.
When i am a single post i want to run a database query that uses the current post ID to find the matching sub field, then get another sub field in that same repeater field.
Can anyone help with this?
This is what i have so far which is not want i need but its the closes it have been able to get
$games_id_array = $wpdb->get_results(
$wpdb->prepare(
"
SELECT *
FROM wppp_postmeta
WHERE meta_key LIKE %s
AND meta_value LIKE %s
",
'contributing_game_creators_%_game_creator_roles',
'%'.$search_value.'%'
)
);