You're browsing: KeithJamesLock.com » phpBay Pro » Blog article: phpBay Pro: The Extended Manual – Replacing Wordpress Search

This eBay Auction Affiliate Tool For WP Is Simply Amazing!

Everyone knows that folks buy and sell stuff like crazy on eBay, but did you know that YOU can EASILY profit from that buying and selling frenzy?

CLICK HERE TO SEE HOW TO EASILY INTEGRATE EBAY AUCTION LISTINGS INTO YOUR SITES AND BLOGS AND GET PAID FOR EACH CLICK!


Use coupon code DA9CD69F42 for 20% off!

Bookmark and Share

phpBay Pro: The Extended Manual – Replacing WordPress Search

Fri, Jul 24, 2009

phpBay Pro

We've come a long way in the extended manual for phpBay, but there's still a lot of good stuff coming up. We've already covered what I think are the basics, features that I believe should be part of the core. We got into phpBay geo ip targeting and of course making the images link over to the auctions as well.

Today I want to cover converting the WordPress search to a search which shows eBay results using phpBay instead. It's not something you would want to do on all of your sites though. For example, on this blog, I still want people to find post content when doing a search, although I still use phpBay on some of the pages of this blog. This change is more for sites that are strictly designed as eBay stores. Also if you use the Search2Post plugin from psp-tubes.net, then you will already have a plugin that performs this task, and then some. In addition to showing eBay results, Search2Post also creates a post on-the-fly with the search results. That way, new content is created over time. Anyway, let's get into it...

Table Of Contents

Replacing WordPress Search With eBay Search

You may want to replace the WordPress search function to show eBay listings rather than regular search results for the sites existing content. To do this you just have to replace some text in your theme's search.php file. Note: This doesn't work for all themes, so be sure to do a backup in case it doesn't work for you. Here are the steps...

  1. Go to your theme folder with your FTP program (FileZilla). The theme folder will be located here: '/wp-content/themes/{theme name}/' where {theme name} is the name of your theme of course :)
  2. We want to edit the search.php file but we should make a quick backup first. One way is to download the file to your computer. Rename it. Upload it again. Now you have a backup on the server in case you need to fall back to it.
  3. Go to your Theme Editor (Appearance > Editor) in your WordPress Control Panel.
  4. Open the file 'Search Results - search.php' from the right side.
  5. Locate the line:

    and then scroll down near the bottom and look for:

    You will need to remove all the code between (and including) those 2 lines and replace it with:

    Click here to get this code in a text file.

  6. Click 'Update File'.
  7. Go test the search function on your site. You should see a list of auctions as the result of a search. If not, and you get errors, check back through the code. Worse case scenario you can just restore your backup search file. To do that, go to your theme folder in your FTP software. Delete the file search.php. Locate your backup file (the one you renamed earlier) and rename it back to search.php. You can rename it right on the server. Just right-click and click 'Rename'.

That should do it. The next step is going to cover keyword tracking for SEO. In other words, you could see which keywords are used in the search engines to find your auctions, and that ultimately end in a sale. This upgrade is also FREE!

Any questions, please post below.

Related posts:

  1. phpBay Pro: The Extended Manual – Inserting phpBay Code Into Theme Files
  2. phpBay Pro: The Extended Manual – Making The Images Clickable
  3. phpBay Pro: The Extended Manual – Installation and Activation
  4. phpBay Pro: The Extended Manual – Testing
  5. phpBay Pro: The Extended Manual – Geo-Targeting

Bookmark and Share

© Earn a living online in your pj's

Share this post:
http://keithjameslock.com/wp-content/plugins/sociofluid/images/digg_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/reddit_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/stumbleupon_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/delicious_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/technorati_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/google_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/myspace_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/facebook_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/yahoobuzz_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/sphinn_48.png http://keithjameslock.com/wp-content/plugins/sociofluid/images/mixx_48.png

If you enjoyed this post, make sure you subscribe to my RSS feed!

, , , , ,

 

Enter your first name and email address below to receive exclusive money making tips.
First Name:
Your Email:
Spam protection; double opt-in:
Using AWeber Autoresponder


N1WAY

Leave a Reply