WordPress templates are powerful tools. For example many themes use templates to give you the option of creating a sales page without the sidebar. But I had never seen these custom templates used for WordPress posts.
An artist needed Paypal buttons added to her WordPress site, a portfolio of paintings and prints showcased using posts. But at this point we only wanted to add Paypal buttons for the prints, which were available at a the same range of prices based on size of the print and the paper used. Since most of the posts (but not all) would have the same Paypal buttons, I wanted to find a way to avoid copying and pasting code onto each page. I also wanted to empower my client to have the choice to “turn on” or choose the paypal buttons with just a click or two. I found the answer in WordPress custom post templates.




