It took me a full day to figure out how to do this, so I figured I'd share this with the community and save you guys some of the trouble.
First of all, I used the phpBay plugin to allow me to show Ebay auctions. I paid for it, so I can't post a nulled version for you guys (sorry, couldn't find one).
Read the site's documentation on how to install and implement it into your site. Everything is very detailed and easy to use.
Now, here is the tricky part : Using Tags as your keywords to display current Ebay auctions with phpBay. Took me awhile to figure it out since I've never programmed in PHP, but it works :
I pasted it into my single.php file since I want to use the tags from each post to display related auctions.
Thats it! Hope you guys like it.
Now I'm going to work on doing the same with Amazon listings! Wish me luck.
First of all, I used the phpBay plugin to allow me to show Ebay auctions. I paid for it, so I can't post a nulled version for you guys (sorry, couldn't find one).
Read the site's documentation on how to install and implement it into your site. Everything is very detailed and easy to use.
Now, here is the tricky part : Using Tags as your keywords to display current Ebay auctions with phpBay. Took me awhile to figure it out since I've never programmed in PHP, but it works :
Code:
<?php $posttags = get_the_tags();
if ($posttags) {
foreach($posttags as $tag) {
$tagz .= $tag->name . '|';
}
}
$keyword = $tagz;
$text = '[phpbay]' . $keyword . ', "5", "", ""[/phpbay]';
echo phpBayPro($text);
?>
I pasted it into my single.php file since I want to use the tags from each post to display related auctions.
Thats it! Hope you guys like it.
Now I'm going to work on doing the same with Amazon listings! Wish me luck.