Skip Navigation

[Resolved] How to display form

This thread is resolved. Here is a description of the problem and solution.

Problem:

Post type: "Business Profile"
Each "Business Profile" post author is different WordPress user.

How to display a post form for user to edit their own "Business Profile" post?

Solution:

You can try these:

https://toolset.com/forums/topic/how-to-display-form/#post-1365259

Relevant Documentation:

https://toolset.com/documentation/user-guides/filtering-views-query-by-author/

This support ticket is created 5 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 2 replies, has 2 voices.

Last updated by Chris 5 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1365155

I start with the issue as described here:
https://toolset.com/forums/topic/custom-user-fields-in-another-toolset-form/
I have all that part of it working fine, however now as suggested, I moved all the extra profile info into a new post type, and have created a form for users to edit that, but how do I display it?
When I go to insert the shortcode for the form I get the options of 'The current post' and 'Another post'. How do I have it edit the Profile post associated with the logged in user?
thanks

#1365259

Hello,

I assume we are talking about this:
Post type: "Business Profile"
Each "Business Profile" post author is different WordPress user.

You are going to display a post form for user to edit their own "Business Profile" post.

If it is, you can try these:
1) Create a WordPress page, for example: Edit my own Business Profile
Display below post view

2) Setup a post view: my own Business Profile post
- Query "Business Profile" posts
- Filter by:
Select posts with the author the same as the current logged in user.
- Display the edit post form shortcode you mentioned above using option "The current post in the loop"

More help:
https://toolset.com/documentation/user-guides/filtering-views-query-by-author/

#1366945

My issue is resolved now. Thank you!