Skip Navigation

[Résolu] Post saved shows in all the posts

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: I have a View that shows a list of posts with a CRED form in each result. When I submit one CRED form, the other forms all show the confirmation "Post Saved" message.

Solution: The confirmation is only intended to work on a page with one form. We will submit a feature request to extend the use of this message so that it can be shown effectively on a page with multiple forms.

This support ticket is created Il y a 7 années et 1 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Ce sujet contient 7 réponses, a 3 voix.

Dernière mise à jour par toolset-dave Il y a 6 années et 6 mois.

Assisté par: Beda.

Auteur
Publications
#584794

I have created a view with list of post. Each post has edit link (I was following https://toolset.com/documentation/user-guides/displaying-cred-editing-forms/) and if I edit the post and save it, it will redirect me back to the list of post, which is OK, but the message "Post saved" is displayed by each post, not only by the edited one.

#584960

Hi, could you share the code you have included in your View of Posts? If any content templates are used, please include the code from those as well so I can see how you have set up the CRED form messages.

#584982

This code is used in loop:

<td><a href="[wpv-post-url]" target="_blank">[wpv-post-title]</a></td>
<td>[toolset-edit-post-link layout_slug="edit-my-post"]Edit[/toolset-edit-post-link][cred-form-message]</td>
#585365

Okay thanks, I don't see anything obviously wrong with your code, so I suspect something else is going on. Please try the following troubleshooting steps:
- Temporarily activate a default theme like Twenty Seventeen and deactivate all plugins except Types, Views, Layouts, and CRED. If you need to activate a plugin like Maintenance Mode to run this test, that's fine.
- Test the CRED form again. If the problem is resolved, activate your parent theme, then child theme, then plugins one by one until the problem is revealed again.
- If the problem was not resolved, I may need to take a closer look in your wp-admin area to see what's happening. If I need to make any changes, I will install the Duplicator plugin, create a clone of your site, and make those changes locally. If that's okay with you, please provide login credentials in the private reply fields here.

#585394

Actually, I was just able to replicate this on my local environment so I think it will not be necessary to perform those tests. I will escalate this issue to my 2nd tier support team for further investigation. Please stand by and I will update you when I have some more information to share.

#591013

Hi, just a quick update to let you know our 2nd tier support team has escalated the success / redirect problem to our Views developers as a bug. I don't currently have a timeline available for the resolution of this issue, but I will keep you posted here as I receive more information.

#892523

This will be solved with a new feature, where the [cred-form-message] accepts an ID attribute.

Right now, that message is not intended to address one single form.

Since this is a feature request, we can close this ticket.

#895222

Thank you, I am glad to hear that it will be solved.