Editing Previous posts from Free version

This topic contains 5 reply and 2 voices, and was last updated by residencyunlimited 11 years ago
Viewing 5 Posts - 1 through 5 (of 5 total)
Author Posts
April 22, 2013 at 7:32 pm 2727
residencyunlimited Hi Again! sorry I have lots of little issues lately. When I try to edit posts generated by old free version, I get:
 I don't know how to edit this post, I don't have the form ID
- that past version I was using was the 2rrrr fork vesion.. I tried re-activating it, and get an error.. thus I don't really know how to identify the old ID.. -tried poking around phpmyadmin with no luck.   this is primarily for our user that have already posted content and will probably maybe need to back.   thanks S  
April 22, 2013 at 7:46 pm 2728
Tareq Hasan Tareq Hasan

Q. I get the message: “I don’t know how to edit this post, I don’t have the form ID”

Ans: When you create a post with the new version of WP User Frontend, a form ID is being attached to that post. It’s needed because you might have 10 forms and it doesn’t know which form should be used to edit that post.

For this problem with older posts, one thing you need to do. If you go the those posts edit screen in backend, you’ll see a meta box “WPUF Form”, select the form that should be used to edit the form.

May be should’ve read the FAQ?

April 22, 2013 at 8:08 pm 2731
residencyunlimited residencyunlimited

making face palm as I read the first thing in the FAQ.

thanks!

April 22, 2013 at 8:25 pm 2736
residencyunlimited residencyunlimited

while this did solve the issue.. is there a way to set the form to a bulk of posts?

I have hundreds of posts to do.

April 22, 2013 at 8:55 pm 2740
Tareq Hasan Tareq Hasan

Although there isn’t any bulk feature, but getting all posts and run them in a loop and update them should be ok. This code will help

[php]
$form_id = 32; // your form ID
$all_posts = get_posts( array(‘post_type’ => ‘post’, ‘numberposts’ => -1) );

if ( $all_posts ) {
foreach ($all_posts as $item) {
update_post_meta( $item->ID, ‘_wpuf_form_id’, $form_id );
}
}
[/php]

You need to run this code somehow and give the right form ID to that variable in line 1. It’ll update all the posts from `post` post type.

April 22, 2013 at 9:16 pm 2745
residencyunlimited residencyunlimited

Thanks Tareq,

you’ve been very helpful!

 

Viewing 5 Posts - 1 through 5 (of 5 total)