Skip Navigation

[Resolved] auto draft problems

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

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/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by edr-2 4 years, 8 months ago.

Assisted by: Waqar.

Author
Posts
#1656345
wird-permalink.png

Tell us what you are trying to do? saving a cred post now is creating a weird permalink

Is there any documentation that you are following? whatever articles i can find
in one article i noted that the same ip can cause the problem(?)
so i used a vpn and saw the same result.
Is there a similar example that we can see? if you login you will see ( attached photo )
also i include this top of cred to see if you find an error there.
[credform class="cred-form cred-keep-original"]

[cred_field field="form_messages" value=""]
<div class="cred-field cred-field-post_title">
<label class="cred-label">
Attorney Name (Required)
</label>
[cred_field scaffold_field_id='lawyer-name' field='lawyer-name' force_type='field' required="true" class='form-control' output='bootstrap' label='Lawyer Name']
</div>

What is the link to your site? hidden link

#1656579

Hi,

Thank you for contacting us and I'd be happy to assist.

I've performed some tests on my website and I was able to get posts with such "CRED Auto Draft...." titles only when the post form didn't include any post title field.

Can you please confirm if your post form includes the post title field?

In case, a post title field exists and still, posts are being saved with these automatically generated titles, I'll need to see exactly how this form is set up in the admin area, in order to reproduce this.

You're welcome to share temporary admin login details, along with a link to a page where this form can be seen.

Note: Your next reply will be private and though no changes will be made on your website, please make a complete backup copy, before sharing the access details.

regards,
Waqar

#1657567
permalink-slug.png

well i got a post title, but the permalink is not what we need. the code that was used is
//Create a dynamic post title by the CRED form.
add_action('cred_save_data','func_custom_post_title',10,2);
function func_custom_post_title($post_id,$form_data) {
if ($form_data['id']==1166) {
$name = get_post_meta($post_id, 'wpcf-lawyer-name', true);
echo "name is " + $name;
$title= $name;
$args = array('ID' => $post_id, 'post_title' => $title);
wp_update_post($args);
}
}

but i think somehow the "slug" is in the permalink?

#1657583

My issue is resolved now. Thank you!