Skip Navigation

[Fixed in next Release] CRED Delete refresh not reloading current page

This support ticket is created 8 years 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by Luo Yang 8 years ago.

Assisted by: Luo Yang.

Author
Posts
#453079

In V1.8.0 when I deleted a record, I was returned to the same page that I actioned the delete from.

I'm executing the delete from a URL that looks like - /accommodation/p21149/?cred-edit-form=73

In V1.8.1 after the delete the page displayed is - /accommodation/p21149/ - the same page but without the querystring variable

My delete token looks like the following:-

[cred_delete_post_link class="cred-refresh-after-delete js--hu_edit_links--hidden_delete" text="Löschen" message="" message_show="0" action="trash"]

#453293

Dear Simon,

I can not duplicate same problem, see below test site:
hidden link
user/pass: xgren/111111

Use below view:
hidden link

in section "Templates for this View", use same codes as you mentioned above:

[cred_delete_post_link class="cred-refresh-after-delete js--hu_edit_links--hidden_delete" text="Löschen" message="" message_show="0" action="trash"]

Could you duplicate same problem in above test site?
If you can not too, please check these:
deactivate other plugins and switch to wordpress default theme, and test again

#453363

Hey Luo,
I've just reproduced this on a test site. I can give you access if you want. I think the key here is that my child view (with the delete button) sits on the cred form for the parent. This worked nicely until CRED V1.8.1.

So my structure is as follows I have cpt Parents and cpt Children.

I have a view that lists Children for the current Parent post.

I have a CRED edit form for the Parent post.

In the Parent post edit form I insert the view to list Children with a CRED delete button for each item in the loop.

My Parent post edit form has a url like /test-parent/parent-1/?cred-edit-form=28

When I delete, then I am redirected to the base url /test-parent/parent-1/

I have tested this on a vanilla install running just the Toolset plugins at latest versions and using the Toolset starter theme.

#454068

Thanks for the details, the problem is in the step:
In the Parent post edit form I insert the view to list Children with a CRED delete button for each item in the loop.
I suggest you put the child view outside the CRED form, and test again.

#454123

Hi Luo,
Although the view is on the same page ( which is critical functionality for this site) it is not inside the <form></form> tags. It is a real requirement that I have this view and the cred form on the same page and since the last upgrade this no longer works. So as far as I see, it's a breaking change. Could you please talk to the devs for me? Is there another way I can combine my cred form and a list view on the single post page?

Thanks,

#454131

Yes, it is possible to display both the view and the CRED form in the same page, you only need to move the view out side the CRED form, for example below test site:
hidden link
user/pass: xgren/111111

Using below content template:
hidden link

<strong>Edit the current parent CPT post:</strong>
[cred_form form='39' form_name='CRED edit form for the Parent post']

<hr />

<strong>Child posts of current parent CPT post:</strong>
[wpv-view name="view-that-lists-children-for-the-current-parent-post"]

As you can see the CRED delete link works in above test site:
hidden link

#457634

Here is the feedback from our developers, it is fixed in our to-do list of CRED 1.8.3, our developers are working on it, which will be released soon.