Problem Description:
I am facing a challenge in using CRED forms within a Content Template for a custom post type "Solicitud" (Request). I need to obtain the current "Solicitud" post's ID within these forms. However, I consistently receive the ID of a different post ("Productor" - Producer) associated with the logged-in user. This issue occurs even when the CRED forms are intended to edit the current "Solicitud" post.
URL
hidden link
Problem Details:
I have a Content Template set up for the custom post type "Solicitud".
Within this Content Template, I have inserted two CRED forms: one form to edit entries of another custom post type "Cotización" (Quotation), related to "Solicitud", and another form that edits the current "Solicitud" post.
In both CRED forms, I am attempting to obtain the ID of the current "Solicitud" post using the [wpv-post-id] shortcode. However, this shortcode returns the ID of a "Productor" post associated with the logged-in user, instead of the "Solicitud" post's ID.
This incorrect behavior occurs in both forms, regardless of whether the form is editing a "Cotización" post or the current "Solicitud" post itself.
Expected Result:
The [wpv-post-id] shortcode should return the ID of the current "Solicitud" post in the context of the "Solicitud" Content Template, even when used inside CRED forms that are editing either a "Cotización" post or the "Solicitud" post itself.
Actual Result:
The shortcode is erroneously returning the ID of a "Productor" post associated with the logged-in user, rather than the ID of the current "Solicitud" post.
Steps I Have Taken:
I created a Content Template for "Solicitud".
I inserted two CRED forms within this template: one for editing "Cotización" posts and another for editing the current "Solicitud" post.
I used the [wpv-post-id] shortcode within these forms to obtain the "Solicitud" post's ID.
I found that the shortcode returns the incorrect ID (that of the "Productor" post) in both forms.
Request for Assistance:
Could you please assist me in understanding why the [wpv-post-id] shortcode is not returning the expected ID in these contexts and how I can resolve this issue? Are there specific configurations or alternative approaches I should consider to correctly obtain the ID of the "Solicitud" post within these CRED forms?
Additional Information:
I am using Toolset on a WordPress website.
The issue occurs in a Content Template for "Solicitud" that includes CRED forms for editing both "Cotización" and "Solicitud" posts.
I appreciate your assistance and look forward to your guidance in resolving this matter promptly.