Skip Navigation

[Resolved] Edit post link not loading edit form

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/Karachi (GMT+05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Waqar 10 months, 1 week ago.

Assisted by: Waqar.

Author
Posts
#2628103

I have created a link on my account page that links to a page called my projects. My projects view is set up as a page where the user can see their projects and edit them.

I set the edit link to a form edit post link and selected the edit project content template and added the edit project form.

When I click on the edit link it loads the single project page and not the edit project form. I followed the documentation below.

https://toolset.com/course-lesson/allow-users-to-manage-their-items/
https://toolset.com/course-lesson/front-end-forms-for-editing-content/

hidden link

#2628651

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting us and I'd be happy to assist.

To troubleshoot this, I'll need to see how this form and the content template are set up in the admin area.

Can you please share temporary admin login details, along with the link to the page where this edit post link is?

Note: Your next reply will be private and making a complete backup copy is recommended before sharing the access details.

regards,
Waqar

#2631637

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for sharing these details.

To make the edit link and the content template work, I made the following changes:

1. In the Elementor's template for the single 'Project' posts, I included a new 'Container' widget with a 'Post Content' widget.
( screenshot: hidden link )

The availability of the 'Post Content' is important, because Toolset's content templates need the post content to take effect.

2. In the Toolset's 'Edit Project' template:

A). I removed the 'Projects' post type from the usage section, as we don't need to use this template for normal view and only want it for the edit link.

B). In the template's custom CSS, I included this CSS code, so that it hides the first container (that shows the normal content) from the Elementor's template when the edit link is used.
( screenshot: hidden link )


#main > div[data-elementor-type="single-post"] > div[data-element_type="container"]:nth-of-type(1) {
    display: none
}

This way, when you'll reach to the single project page through the edit link, only the edit form will show and not the regular content.

#2632901

Hi Waqar,

Thank you for your time and effort. Your solution worked :).

This ticket is now closed. If you're a Toolset client and need related help, please open a new support ticket.