Home Forums Plugin Support WP User Frontend Pro Editing Previous posts from Free version

This topic is: resolved

This topic contains 5 replies, has 2 voices, and was last updated by  residencyunlimited 5 years, 10 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2727

    residencyunlimited
    Participant
    Post count: 18

    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

     

    #2728

    Tareq Hasan
    Keymaster
    Post count: 2831

    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?

    #2731

    residencyunlimited
    Participant
    Post count: 18

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

    thanks!

    #2736

    residencyunlimited
    Participant
    Post count: 18

    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.

    #2740

    Tareq Hasan
    Keymaster
    Post count: 2831

    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.

    #2745

    residencyunlimited
    Participant
    Post count: 18

    Thanks Tareq,

    you've been very helpful!

     

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Editing Previous posts from Free version’ is closed to new replies.