February 17, 2011 - 3 comments

Echoing phpBay in Your WordPress Template

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.


June 19, 2012 at 2:07 am

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?

    June 19, 2012 at 5:23 pm


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


Leave a Reply