I am trying to figure out how to set a default value to assign a parent post to a repeating fields group front end form. Currently the user has to select from a drop down menu. I want the field to automatically select related custom post type item. I was able to limit the results on the list to be only from the author but I would like it to just default to the associated custom post type to that user. User should only have one custom post type as a "profile/personal page". That field should also be hidden from user.
Thanks for your reply. That is a little more helpful but I am trying to accomplish something a little different.
I have set up a custom post type called "Member Details". The posts entries under that will be unique and private to each user. Only the user/author will be able to see and edit the post.
Within that custom post type (Member Details). I have made some repeatable field groups for the user to enter their information in. Those entries will appear on a view I made in a table format.
When I make the front end form for that repeatable field group. There is a field option to choose the parent post entry. The problem is, The user can choose other members post or from a list of multiple posts. I got around from user seeing other users posts by restricting in the options but I would like the default value to be of the users own "Member Detail post" that they would be required to fill out after creating their account.
What would be the process to enable that functionality? Would the link you provided still help with this?
author Optional. Use it with a parent selector field to specify that the list of parent posts should be limited to those authored by the mentioned user ID. The value $current can be used to define that the