Here's a solution to getting fields from the current logged in user's options.
On class-acf-form-shortcode-admin.php v1.0.0, after line 135, after the shortcode $atts are assigned, add this line.
if ( $options['post_id']=='user_' && is_user_logged_in() ) { $options['post_id'] .= get_current_user_id(); }
DOCUMENTATION - something like this.
To get values from a logged in user, set the shortcode parameter "post_id" to "user_". The plugin will add the ID for the current logged in user.
Example:
[show_acf_form post_id="user_" post_title=0 post_content=0 field_groups="123456" submit_value="Update Selections" ]
IS THIS THE RIGHT PLACE TO SUGGEST THIS?
I haven't surfed GitHub much. I hope this is the right place to contribute this idea.
And thanks for this shortcode plugin. It's exactly what I needed.
Here's a solution to getting fields from the current logged in user's options.
On class-acf-form-shortcode-admin.php v1.0.0, after line 135, after the shortcode $atts are assigned, add this line.
if ( $options['post_id']=='user_' && is_user_logged_in() ) { $options['post_id'] .= get_current_user_id(); }DOCUMENTATION - something like this.
To get values from a logged in user, set the shortcode parameter "post_id" to "user_". The plugin will add the ID for the current logged in user.
Example:
[show_acf_form post_id="user_" post_title=0 post_content=0 field_groups="123456" submit_value="Update Selections" ]IS THIS THE RIGHT PLACE TO SUGGEST THIS?
I haven't surfed GitHub much. I hope this is the right place to contribute this idea.
And thanks for this shortcode plugin. It's exactly what I needed.