Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Waiting for user confirmation] CRED: keep original post type?

$
0
0

Hi Adriano, I tried this code, and it works if I call the form with this shortcode:

[cred_link_form form="Deactivate" text="Deactivate form" target="_self"]

But if I use this:

[cred_form form="Deactivate" post="[wpv-post-id]"]

The form (it includes only the submit button) is not shown in the loop when the post is from another post type.

It is shown if I use this:

[cred_form form="Deactivate"]

but all forms use the post_id of the first post in the loop, so each submit button of each post changes the status of the first post (I solved this issue in the past adding the attribute post="[wpv-post-id]")

Any idea?

thanks


Viewing all articles
Browse latest Browse all 20145

Trending Articles