WordPress.org

Forums

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

  1. madphill
    Member
    Posted 1 year 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 1 year 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

Tags