The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Gravity Forms + Custom Post Types
[resolved] Custom Post Taxonomy + PayPal Addon (2 posts)

  1. oturia
    Posted 4 years ago #

    Hello, there. I am on the latest version of Gravity Forms and have tried both the latest stable and beta versions of this plugin and have not been able to resolve my issue.

    Custom Post Taxonomies are saved when I have PayPal add-on installed but choose to have the post published before payment is received.

    If I choose to have the post created after payment has been received, all meta fields, title, excerpt and featured image save but the taxonomy does not.

    I am using a dropdown for the taxonomy and have it populating with the taxonomy under Advanced.

    I have tried with and without custom values.

    I have also tried setting the custom taxonomy in a custom function and it's not working.

    This seems to me to be an issue with the PayPal post not sending the custom taxonomy through, but I was asked by GF to also post this issue here to see if you had any insight.

    Thanks in advance for your help!


  2. oturia
    Posted 3 years ago #

    Just in case anyone wants the solution, you need to set the post to a draft before it goes to PayPal, which will allow the custom taxonomies to be assigned. Then you would use the hook for gform_paypal_fulfillment for changing the post status.

    Add to the functions.php file:

    function update_post_status_after_payment($entry, $config, $transaction_id, $amount) {
        // get post_id from $entry
        $post_id = $entry['post_id'];
    add_action("gform_paypal_fulfillment", "update_post_status_after_payment", 10, 4);

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Gravity Forms + Custom Post Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.