cstef (@cstef)

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • @cstef

    Participant

    Heh, no I didn’t see that.

    Thanks again for all of your help, it is impressive how quickly this was resolved 🙂

    @cstef

    Participant

    I figured it out for anyone else who may need the answer. I added a new callback method to converter.php that checks for the old vanilla ID of the reply_to and returns the new post ID.

    https://gist.github.com/stefanich/4f8f7b436b87287f44bf

    Tested it, it works 🙂

    @cstef

    Participant

    I am looking into how the “callback_method” value in the field_map array works. I see that when a reply is created, a post meta value is saved to store the old and new post IDs together. I wonder if I can use a callback_method to get the new post id for the replyto based on the _bbp_post_id meta value?

    Is there any documentation I can look for to learn how to use the callback_method?

    Thanks!

    @cstef

    Participant

    It looks like the ID of the parent is the old vanilla ID and not the new bbpress post ID, is there a way for me to make sure it saves the new ID as the parent?

    thanks!

    @cstef

    Participant

    Stephen,

    The import did save the _bbp_reply_to in the postmeta, but it does not seem to be affecting the nesting of the replies.

    Since the data is there, maybe there is some way I can override the listing of replies to make them show in the nested list?

    Thanks!

    @cstef

    Participant

    Stephen,

    Thanks a bunch, I will try this out first thing tomorrow and let you know how it goes.

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