• Hi there

    I am using the give_form_grid to display the current campaigns.
    When the user clicks on the campaign i want to show him a page about the campaign with some additional facts, in this page i will include a donation button. When the user clicks on the donate button i want to show the donation form page.

    Currently the give_form_grid refers to the donation form page.

    I don’t want to use any redirection plugins for this.
    I’m sure someone already extended this functionality.

    https://github.com/impress-org/give/blob/master/templates/shortcode-form-grid.php#L26

    This get_the_permalink() function I would need to replace with a custom logic.

    I’m not a familiar WP developer; so it would be nice to get some feedback to the following approach:

    1) I create a simple plugin and assign the form-id to the page-id.
    2) I create a custom lookup function with the form-id which returns me the page-id
    3) I copy the shortcode-form-grid.php and place it in theme/give/shotcode-form-grid.php
    4) I call this custom lookup function instead of the get_the_permalink() function

    Thanks for your feedback.

  • The topic ‘Assign custom link in give_form_grid’ is closed to new replies.