How to add Paypal buttons in WordPress
Posted on July 2, 2009 by Carol
If you’ve ever tried copying & pasting a Paypal “add to cart” or “buy now” button into WordPress, you’ll have quickly realised that WordPress destroys the code and renders your Paypal button useless.
Worry not – there IS a solution! You need to install a plugin called Advertising Manager. Advertising Manager is designed to allow you to use snippets such as Adsense code in order to show banners and adverts, but it can actually be used for ANY HTML code!
- Install the Advertising Manager plugin
- In WP Admin, click on Ads > Create New
- Copy and paste your Paypal code into the box and click Import.
- Give your code snippet a unique name on the page that follows (e.g. “myproductpaypallink”), then click Save.
- Now, on any post or page, you can call your Paypal button to show using this handy shortcode [ad#your-unique-name]
Example: [ ad#myproductpaypallink ] (without the spaces!)
- Easy!
Comments (2)

thanks. you saved me a lot of work. bless you.
You’re very welcome