Forum Replies Created
-
AuthorPosts
-
January 21, 2016 at 5:15 am in reply to: updating locations vis CRED form from wp-types no longer working #50199
chunkymac
MemberMany thanks for confirming that the code looks correct. I have been able to make it work by cleaning out my functions.php file and disabling some plugins – just need to work out what the conflict is.
Thanks
January 19, 2016 at 10:16 am in reply to: updating locations vis CRED form from wp-types no longer working #50162chunkymac
MemberAppears code did nto render properly:
add_action(‘cred_save_data_12000’, ‘save_data_for_form_with_id_12000′, 10, 2 );
function save_data_for_form_with_id_12000( $post_id, $form_data ) {include_once( GMW_PT_PATH .’/includes/gmw-pt-update-location.php’ );
if ( function_exists( ‘gmw_pt_update_location’ ) ) {
$args = array(
‘post_id’ => $post_id,
‘post_type’ => ‘specialist’,
‘post_title’ => get_the_title( $post_id ),
‘address’ => get_post_meta( $post_id, ‘wpcf-new-address’, true),
);gmw_pt_update_location( $args );
}
}chunkymac
MemberHi,
Just to add my voice to the requests for select lists for custom fields.
Chris
chunkymac
MemberPS — Javascript console reports: ‘Uncaught TypeError: undefined is not a function’ with an ever increasing number next to it
Thanks
chunkymac
MemberThat’s how I use it too. In fact for the issue I mentioned above I wound up using a view created with WP-Views which makes it ridiculously easy to display custom fields.
chunkymac
MemberMany thanks
chunkymac
MemberTo clarify a little more about my particular need – I do not need the ‘full’ location added more than once. The post would have a ‘primary location’ but any added after that could simply be a postcode (matched to a lat/long, obviously) and would not require all the address fields etc.
Chris
chunkymac
MemberThanks for the clarification – good luck coming up with a solution.
chunkymac
MemberThat seems to work – many thanks indeed.
chunkymac
MemberI’l third it!
-
AuthorPosts