PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Map a form to 'link' post type…is this possible

  1. I've successfully mapped to all other post types and custom post types, but I don't see a way to do so to links. There are not 'post fields' that account for this: http://cl.ly/0F11092Q1v3l1U3O3E1D

    Am I missing something?

    Posted 12 years ago on Friday November 11, 2011 | Permalink
  2. I've never heard of anyone implementing this with Links. I know Links are unique in WordPress as far as how they are stored. If they use custom post types then you should be able to integrate with it. But I just don't know enough about how the Links functionality in WordPress works to be able to provide input on this.

    Every time we have polled users on Link usage to see if we should implement support for them in Gravity Forms it's been met with the vast majority of people we have asked not using Links functionality in WordPress at all so it hasn't been a priority for us.

    Posted 12 years ago on Friday November 11, 2011 | Permalink
  3. You would not use post fields at all.

    The blogroll is stored in a different table, the $wpdb->links table. You can capture all the data you want in your form, then use the gform_after_submission hook and call the WordPress function wp_insert_link which will insert the link for you. Would that work?

    Posted 12 years ago on Saturday November 12, 2011 | Permalink