Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
2 17
Newest
 Critic
Impact
~34k people reached

Apr
30
suggested rejected edit on How to add an admin notice upon post save/update
Mar
13
revised Prevent wp_debug from polluting ajax within plugin
slight revision on using echo then exit, vs, just exit, with will also output the results as needed. Just a bit more succinct.
Nov
6
answered How to check if a string is a valid URL
Oct
10
awarded  Critic
Sep
11
awarded  Necromancer
Apr
23
comment save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
In this case I think it probably is, I've put the question to the plugin authors as well to see if they can comment. Normally accessing types CPTs and meta boxes work just fine within a loop, so it didn't occur to me that it might not be doing things as expected in this instance.
Apr
22
revised save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
correct link
Apr
22
revised save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
changed title to be more discriptive
Apr
22
answered save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
Apr
22
comment save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
I've upvoted your contribution, as it was helpful. Im not sure if it would work for others or not.
Apr
22
comment save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
I keep trying to access the meta values using updated_post_meta and I'm not getting anywhere. If I run a save on the post in question, I only get one result, and I get strange numbers for the values of meta_key, meta_id and object_id. The meta_value returns _edit_lock. I dont this this action is running late enough. It may have to do with the fields being added by the types plugin, though in other instances I've been able to access them through the key name, so Im not sure what the difference. I've returned to my original approach using wp_update_post.
Apr
21
comment save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
Erm, this produces a bunch of notices - first missing semicolon wp_update_post( $post, true )
Apr
21
revised save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
save post hook is taking only one parameter, though the hook incorrectly stated two.
Apr
21
comment save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
I think you've missed my point. Im after the value of $show_time = types_render_field( "show-time", array("post_id"=>"$child_ID", "raw"=>"true") ); At the point of save_post, this value hasn't been set in the database, yet I want to add it to the post title. Take a read of wordpress.stackexchange.com/a/54713/13551. He's asking the same kind of question. Im just having trouble implementing it.
Apr
20
awarded  Excavator
Apr
20
revised save_post + insert_post = infinite loop
typo and code stylin
Apr
19
asked save_post action to include wp_insert_post_data filter, gathering meta field info & prevent infinite loop
Apr
19
suggested approved edit on save_post + insert_post = infinite loop
Apr
14
accepted Prevent wp_debug from polluting ajax within plugin
Apr
14
revised Prevent wp_debug from polluting ajax within plugin
added a new code block representing an intermediary solution