Skip Navigation

[Resolved] Adding Edit Button to custom post type

This support ticket is created 4 years, 2 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.

This topic contains 3 replies, has 2 voices.

Last updated by steveH-15 4 years, 2 months ago.

Author
Posts
#1797703
Screenshot 2020-10-02 at 13.06.11.png

Hello!

Based on the tutorial: https://toolset.com/course-lesson/front-end-forms-for-editing-content/,

I have created a new 'Form for Editing Content', then I created a new 'Content Template' containing this form, but without assigning its usage to any post type. Next, I tried to add 'Edit Post Link' on the template that needs to have the 'Edit' button (this template is located under Layout). However, instead of getting a drop down list to choose the 'Content Template' that I created, I get the attached message.

Can you lease help?

Many thanks

#1797779

Nigel
Supporter

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

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

Do you have Layouts plugin active?

That is a legacy plugin only intended for use on existing sites, but if you do have it active then it is presumed that you are using it everywhere, and it expects that your edit form would have been inserted into an unassigned layout (rather than an unassigned content template).

If you don't need it, disable Layouts.

We do have an internal ticket about streamlining this workflow so that you don't need to worry about inserting the form in an unassigned template beofre edit links can be created.

#1800239

Hi Nigel

Thank you for your reply.

Layouts plugin is active and used on this particular website for other things too, hence can't deactivate it.

I have created aPost Edit Form, added the form to an Unassigned layout (instead of content template). Next I am trying to add the Edit Link to another layout template, that will lead to the Unassigned Layout that contains the Edit Form. But I am still getting the message attached to my first enquiry message.

Can you please provide some guidance on how to achieve this as you mention that 'an internal ticket about streamlining this workflow so that you don't need to worry about inserting the form in an unassigned template beofre edit links can be created.'?

Many thanks for your patience

#1800257

Hi Nigel

I have managed to solve it by looking into it a little more! When creating the Unassigned Layout, I had to use a 'Post Form' field, instead of a 'Visual Editor' field to add the Edit Post Form...so that solved the issue I was having.

My issue is resolved now. Thank you!