• Resolved bsmalldesign

    (@bsmalldesign)


    I have a pods custom post type with a field that has a post id number of a separate custom post type’s post.

    I convert the field to a relationship field, but obviously the post id gets lost with that and does not automatically connect to the other post type’s id.

    I’ve also tried to import a csv with the post id feeding into the pods field (when it’s set to a relationship field) but the data never makes it in, even when I try to make it serialized. I can only get it to import into a simple text field.

    So I guess what I’m asking is – Is there any way to connect the 2 custom post types if I just have the post id of the one I’m trying to associate?

    I know you prefer a certain format to your questions, so I am sorry if I’m not explaining it clearly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter bsmalldesign

    (@bsmalldesign)

    I think I got the csv import to work, so no need to weigh in for now unless it’s an easy answer – thank you.

    Plugin Author Jory Hogeveen

    (@keraweb)

    @bsmalldesign
    If you make sure your import runs through the update_post_meta() functions then it should work fine.
    If you are importing directly into the database you’ll have to import into the podsrel table as well.
    Cheers, Jory

    Thread Starter bsmalldesign

    (@bsmalldesign)

    Ok thanks Jory! I got it all sorted and I believe it was actually the import plugin that was hitting a snag because I deleted all of the posts and re-imported and your fields mapped like a charm, as always.

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @bsmalldesign
    Ok perfect, thanks for letting me know!
    Cheers, Jory

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Text and Bi-Relational Field Question’ is closed to new replies.