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

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

Comments

Richard
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?

    rawwebdesign
    June 19, 2012 at 5:23 pm

    Rich,

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

    Best,
    Brad

Leave a Reply