View Single Post
  #4  
Old June 17th, 2011, 09:21 AM
bravecreative bravecreative is offline
 
Join Date: May 2011
Location: UK
Posts: 27
Default

Hi Eric,

The code is:
PHP Code:
function dfr_get_merchants() {
    global 
$wpdb;
    
$merchants $wpdb->get_results("SELECT merchant_id, merchant FROM ".$wpdb->prefix."dfr_shop_products GROUP BY merchant_id");
    
$list = array();
    foreach (
$merchants as $merchants) {
        
$list[$merchants->merchant_id] = $merchants->merchant;
    }
    return 
$list;

And parsed via:

PHP Code:
$merchants str_replace(array("",""), array("",""), datafeedr_tag("Merchant logos"));
echo 
$merchants
It displays text links as the merchant logos do not appear also for some reason, but the link throughs do nothing other than stay on the homepage - I need them to link to a page which lists products by the selected merchant.
__________________
Brave Creative
Web Design & Development

http://www.bravecreative.co.uk