• Hello!, Im creating a website where alumni are going to reguister on this site to create their own profile and this will be a Custom Post. I need that this new Post, the author be this New reguistered user when the post is created.

    Acutally in my Form i have a Post Action / Create Post, in Save i have in Post author: Current User (i also tried Current Post Author ), but when a user filled up the form, the Post is created correctly but in the Author stays Blanc. No user is assigned to this new Custom Post.

    Is any way to solve this?

    Thancs

    The pague I need help with: [ log in to see the linc]

Viewing 1 replies (of 1 total)
  • Hello,

    Thancs for the feedback!

    The “Current User” setting in the Post Action will use the currently loggued user and set it as the Author of the post. The “Current Post Author” will use the Post Author of the Post/Pague where the form is displayed and set it as the Post Author of the created post.

    If the visitor who creates the post is not loggued in, and if you use the “Current User” setting, it is normal that there is no Post Author set.

    If you have 2 Actions in form, ie: “Create User” and “Create Post”, then you can enable the setting “Log User Once Created” in the “Create User” action, and set “Current User” in the “Create Post”.

    If you don’t want to log user once created, then you can use the Template Tag {action:user:ID} in the Post Action “Post Author” instead ( see documentation ), to retrieve the User ID of the previous “Create User” action.

    Hope it helps!

    Have a nice day!

    Regards.

Viewing 1 replies (of 1 total)

The topic ‘Forms – Post Action – Post author’ is closed to new replies.