Skip to main content
12 events
when toggle format what by license comment
Oct 24, 2016 at 14:18 comment added MolteNolte When I print $error_obj[0] I just get the term value...so this seems okay?
Oct 24, 2016 at 14:17 history edited MolteNolte CC BY-SA 3.0
added 10 characters in body
Oct 21, 2016 at 11:18 comment added MolteNolte Okay it turned out the if statement to verify the nonce didn't work. Now I'am using if(! isset( $_POST['room_facility_nonce'] )) and the saving of the postmeta is working. However since I tried to use the wp_set_post_terms function to save data in wp_term_relationships it couln't work. wp_set_object_terms should be the right one or? Unfortunately its still not working. Shouln't be right with these params: wp_set_object_terms(742,145,room_facility), where 742 is the post_id of the room_type, 145 is the room_facility?
Oct 21, 2016 at 11:13 history edited MolteNolte CC BY-SA 3.0
added 195 characters in body
Oct 20, 2016 at 12:09 comment added stims Save post is fired before you can add anything to the DOM. You need to use something like error_log to debug it.
Oct 20, 2016 at 11:05 comment added MolteNolte but shouldn't the echo '<script>alert("test")</script>'; be called?
Oct 20, 2016 at 10:26 comment added MolteNolte Sry for the confusion...I added the current data manually to test the callback function....
Oct 19, 2016 at 15:32 comment added stims Im a little confused, if its saving in the database, that means the save_post function is working. Where are you having trouble?
Oct 19, 2016 at 14:55 history edited MolteNolte CC BY-SA 3.0
added a full explanation
Oct 12, 2016 at 4:55 answer added stims timeline score: 0
Oct 11, 2016 at 13:46 review First posts
Oct 11, 2016 at 13:48
Oct 11, 2016 at 13:46 history asked MolteNolte CC BY-SA 3.0