Changing post_meta based on other posts post_meta
-
I have a fairly complex (I think) problem:
Say I have 5 posts, all with a post_meta key of bid_id and all having the same value of 4. Other posts will have different values such as 6, 5, 10 etc.
The 5 posts also have a post_meta key of is_awarded and values that can be either not_yet, yes or no. All posts will initially be set as not_yet.When a post has the is_awarded value changed to yes, I would like all of the other posts with the bid_id of 4 to automatically change their is_awarded value to no.
I’m guessing I will need some sort of fairly complex function to get this happening but have no idea where to begin.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Changing post_meta based on other posts post_meta’ is closed to new replies.