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

  1. madphill
    Posted 2 years 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?


  2. JonathanCutrell
    Posted 2 years 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.)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Stripe
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic