Skip Navigation

[Resolved] Custom field content is displayed in edit mode

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

Problem:

The issue here is that the user's custom field was showing up on their edit page for their CPT.

Solution:

The solution was actually provided by the client here:
https://toolset.com/forums/topic/custom-field-content-is-displayed-in-edit-mode/#post-1136815

This support ticket is created 6 years, 4 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 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by dashD 6 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#1134911
Screenshot 2018-10-26 at 08.45.30.png

I have created a custom post type called Technical Notes and also created a single template as per instructions provided within the Toolset documentation for integrating with Elementor (Link 1). Dummy Technical Notes are accessible from the Technical Notes Archive page (Link 2. I have also created an edit form to edit the Technical Notes and embedded the shortcode for the edit link within the Elementor single page template as per instructions within the Toolset documentation for editing posts (Link 3) and Toolset support forum topic related to this (Link 4).

The issue I am facing is that when I click the edit link on the individual Technical Notes page, it shows the form as expected but also renders the Edit link (see above the form) and the content of the custom field called “Additional Notes” (see below the form).

How do I resolve this please?

Link 1 - https://toolset.com/documentation/user-guides/using-toolset-with-elementor-page-builder/create-templates-for-custom-post-types-with-elementor-and-toolset/
Link 2 - hidden link
Link 3 - https://toolset.com/documentation/getting-started-with-toolset/publish-content-from-the-front-end/forms-for-editing/
Link 4 - https://toolset.com/forums/topic/front-end-content-editing-forms-built-with-cred-embedding-in-elementor-single/

Note, I have created a admin login for you on the site to support this, but the "I want to grant access" option does not let me share it unless I provide FTP details too, which I don't think are needed for this. I can email you the username and password for the Admin account.

#1135137

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

I've enabled the private fields for you so that you can provide the credentials so I can have a look.

Thanks,
Shane

#1136809

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

I'm running some tests on this locally, to see what the issue is.

I'll let you know if it is something that is replicable.

Thanks,
Shane

#1136815

This issue is now resolved. The root cause of this issue was that the single template was created using Elementor and Dynamic Fields using Toolset Fields. The edit link only replaces the output generated by the Post Cotent module with the form for the Custom Post Type, which means that any content on the Single Template which is in addition to the Post Content will remain on the page even in edit mode. The solution therefore is to generate the full content using Views Content Templates (Toolset > Dashboard > Front-end: Template) and including the edit form link within it using the Toolset Forms button on the Content Template editor; Then within Elementor the content generated by the Views Content Template will be displayed automatically if the Post Content module is added to the template content. As the content is then displayed as a whole within the Post Content module, clicking the link replaces all the content of the Post Content module with the edit form.

This issue can now be closed.

#1136821

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hello,

It Seems that I need a copy of the pro version of elementor.

Would you mind providing me with a copy of this ?

Thanks,
Shane

#1136823

My issue is resolved now. Thank you!