Echoing phpBay in Your WordPress Template

by Bradley on February 17, 2011

I had a hell of a time trying to figure out how to call phpBay from a theme file rather than by using the shortcode.  After sending a quick email over to the developer, he eventually gave me this code which works like a charm:

<!-- start of ebay-->
<!--?php                   $text='[phpbay]"", "", "", ""[/phpbay]';                 echo phpBayPro($text) . "";                  ?-->
<!-- end of ebay -->

I hope this helps anyone else who is trying to figure this out.

Want More out of WordPress?

I can show you how to get more traffic, make WordPress do amazing things, and how to make more money with your website by converting your visitors into customers. Click the button to the right to get a free estimate.

  • Pingback: Tweets that mention Echoing phpBay in Your WordPress Template -- Topsy.com

  • Richard

    Hi Brad!

    Am trying to call PHPBay Lite from Single Post.Php rather than going back to insert over 300 short codes into individual pages.

    Have tried the above after the content section as below:



    But nothing is showing. I know PHPBay Lite is a simplified version so maybe the code isn’t the same?

    • rawwebdesign

      Rich,

      Please email me to discuss. I’d be happy to help you figure out the problem.

      Best,
      Brad

Previous post:

Next post: