WordPress.org

Ready to get started?Download WordPress

Forums

Adding a PayPal Subscripiton Button (15 posts)

  1. HomeOfficeVoicecom
    Member
    Posted 9 years ago #

    Is there a way to add a PayPal subscription button to a Page on WP?

    When I include the code given from PayPal all I see is the whole code instead of the button.

    Am I missing something here? Can this be done?

  2. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Yes it can be done.
    You must be incorrectly pasting some code at the start of the Paypal code.

  3. ColdForged
    Member
    Posted 9 years ago #

    Is it PHP code? If so, did you wrap the code in <?php ?> tags?

  4. ColdForged
    Member
    Posted 9 years ago #

    Khhhaaan! You have the fastest "Send Post" button in the west, podz. ;)

  5. HomeOfficeVoicecom
    Member
    Posted 9 years ago #

    the paypal code is within a form tag (it's on a page not a post - if that makes any difference)

    here's the page: http://www.homeofficevoice.com/support-us/

  6. ColdForged
    Member
    Posted 9 years ago #

    Can you post your page content here so we can see what it looks like?

  7. HomeOfficeVoicecom
    Member
    Posted 9 years ago #

    Did it. Didn't work.

    Simply wrapped the code around <?php ?> tag

  8. ColdForged
    Member
    Posted 9 years ago #

    No, if it's a form it won't require the PHP tag wrapping. Can you post the code there, or is that what didn't work?

  9. HomeOfficeVoicecom
    Member
    Posted 9 years ago #

    Yep, I can post the code there and it came back with the new code wrapped in php - when I pasted it into my WP page it still shows the whole code and not the button.

  10. HomeOfficeVoicecom
    Member
    Posted 9 years ago #

    Okay... I can place the PayPal code in the sidebar.php and the button appears as it should (and therefore it will appear on every page - not what I want), but ...

    when placed in a individual page (or post) it does not work ...

    Has anyone been able to place a PayPal button within a Page?

  11. Mark McKibben
    Member
    Posted 9 years ago #

    If you're trying to paste PHP code into an actual post/page on your site and not having it appear as part of your theme; then you'll need a plugin to get that code to execute (e.g. PHP Exec).

  12. ColdForged
    Member
    Posted 9 years ago #

    It's not PHP code, Manzabar. It's just a form. Somehow the form is being converted to HTML entities, but damned if I know why right now.

  13. prissed
    Member
    Posted 9 years ago #

    WP is automatically changing the < into &lt;

    I guess it's by design, not sure.

    But you can get Alex King's WP-Unformatted plugin:
    http://www.alexking.org/index.php?content=software/wordpress/content.php

    You'll have to format everything else in that post, though (i.e. paragraph tags), but it should get the rest of your html to display correctly.

  14. Mark McKibben
    Member
    Posted 9 years ago #

    Hmm, WP 1.2.2 & 1.5 don't muck about with my HTML.

    @HomeOfficeVoicecom: Did you turn on the Markdown or Textile plugins? Maybe that would do this?

  15. HomeOfficeVoicecom
    Member
    Posted 9 years ago #

    Found the problem!

    Manzabar: don't use those plugins but I do use the WYSIWYG Plugin from Mudbomb.

    Deactivated it and placed the code again and the button appears.

    Shame because the plugin is a beauty - especially the image manager.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.