[Resolved] post type mismatch issue – form in view on single post
This support ticket is created 2 years, 8 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Tell us what you are trying to do?
I placed a well running child post type view on its parent post type's single post. I need an edit form in that view of the same child post type the view is looping thru.
Is there any documentation that you are following?
nope
What is the link to your site? hidden link
I am aware that a form that doesn't match a single post's post type won't work when placed directly on that single post. But within a view of a related child post type - that per se works and loops thru all filtered child posts error free - I expect the form to reference the view's post type instead of mismatching around with the parent post's post type.
Have you inserted the form directly in the output of the child post View? And the form is set to edit posts of that same type?
Because in that scenario, where the edit form is editing the "current" post, and the current post is determined by the View where the form is added, they would be of the same type.
So it sounds like you are doing something different?
it's exactly the positive scenario that you've described. There's two forms for that post type in it (one to set the post's stage like 'to be done' or 'accomplished') and another one in a different layout position for comments). The weird thing is: the former works, the latter responds with mismatch error. Both are set to 'edit' and to the matching post type.