• Resolved mburtis

    (@mburtis)


    I’m trying to write some code to work with the content of a custom field populated from GF via PODS into a custom content type. Is there a function I can use to get the ID of the post after the form is submitted and the GF-PODS plugin creates the custom content?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    I’m just headed to bed but wanted to let you know that yes there is a way to get the ID and I will post it for you tomorrow morning. Sorry I’m not in a place to get into the code at the moment.

    Sorry to recall this one, but was there a followup posted to this?

    Plugin Author Scott Kingsley Clark

    (@sc0ttkclark)

    You can try and use this:

    $new_item_id = ! empty( Pods_GF::$gf_to_pods_id[ $form_id ] ) ? Pods_GF::$gf_to_pods_id[ $form_id ] : 0;

    That would get you the new item ID from the mapping code that has already run.

    Maybe something that would help would be to know where in the process you are hooking in that you need it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get Post ID of GF-Pods created content’ is closed to new replies.