Skip Navigation

[Resolved] Edit post form in page

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
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 7 replies, has 3 voices.

Last updated by Minesh 9 months, 2 weeks ago.

Assisted by: Minesh.

Author
Posts
#2686184

Hello,

Would it be possible to edit a post on a page created which contains the post editing form?

Thank you

#2686226

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I'm not quite sure I understand the question.

Typically posts are edited at their normal URL, but a URL parameter specifies a different template to use that will display the post edit form.

You want to edit a post, but you want to edit it via some page instead, is that right?

That should be possible, but which post would be edited? What is the workflow you have in mind?

#2686439

Exactly.
Today I can edit a post but directly on the post template.
I don't want that because there are elements like a banner, a right column...
hidden link

I just want the form.

How can I do ?

#2686505

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

You can add the edit form to page but then you will have to pass the ID of the post as URL param that you want to edit.

Where you want to add the Edit post link? Can you please share all those details and problem URL and admin access details.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2686598

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I would like to know from where you will decide that this is the X post that you want to edit?

For that we will need to add the post edit link - where on what page/post you want to display the post edit link so when user will click on the post edit link they will be redirected on the edit-tournament page.

Do you want to add the post edit link on the single post of Chess Tournament?

#2686885
my-tournaments.png

Hello,

When I am logged in I have access to the "my tournaments" page where I can edit each chess tournament.

Thank you

#2687211

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please send me frontend user access details using which I should be able to login and see the "My Tournaments":

I have set the next reply to private which means only you and I have access to it.

#2687569

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please check now: hidden link

I've created the following Content template that will hold the edit form as given under:
=> hidden link

[cred_form form='edit-chess-tournament' post="[wpv-search-term param='edit_post_id']"]

With "edit-tournament" page that displays the form, I removed the form's module whiich you added and instead added the shortcode's module add added the following shortcode that displays the above content template that holds the form.
=> hidden link

[wpv-post-body view_template="container-for-edit-form"]

With the view that displays the edit link - I've added the Edit link as given under:
=> hidden link

<a class="cred-edit-post" href="[wpv-bloginfo show="url"]/edit-tournament/?edit_post_id=[wpv-post-id]" target="_blank">Edit</a>
 

Can you please confirm it works as expected now.

#2687585

It's perfect.
Thank you.