WordPress.org

Ready to get started?Download WordPress

Forums

WP Stripe
PHP tag in template not working (2 posts)

  1. madphill
    Member
    Posted 10 months ago #

    I've added the following

    <?php wp_stripe_form(); ?>

    to my template in the header as a test-run and it's not injecting the button. The shortcode is working when I place it in a page's content however.

    I am out of ideas. Can someone help maybe?

    http://wordpress.org/plugins/wp-stripe/

  2. JonathanCutrell
    Member
    Posted 9 months ago #

    Just a quick note here - I had the same problem and searched through the source and realized I needed to echo the form.

    <?php echo wp_stripe_form(); ?>

    Potential dev suggestion here: wp_stripe_form(); should echo, while get_wp_stripe_form(); should return. (Or, at the least, probably a change to the docs to reflect that an echo is needed.)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags