View Single Post
  #14  
Old June 20th, 2011, 09:42 AM
bravecreative bravecreative is offline
 
Join Date: May 2011
Location: UK
Posts: 27
Default

It is just calling the datafeedr tag.

index.php
PHP Code:

        <div id="merchants">
        
            <h2>Samsung TV Merchants</h2>
            <?php 
            $merchants 
str_replace(array("",""), array("",""), datafeedr_tag("merchantlogos"));
            echo 
$merchants
            
?>         
            <div class="clear"></div>    
        </div> <!--! end of #merchants -->
functions.php
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;

All coming from the Widget code in Factory

Before I used a different code and it actually showed the logo's - I also notice in your URL there you have /store/ and that seems to work like a charm.

The code you have provided does not add this?
__________________
Brave Creative
Web Design & Development

http://www.bravecreative.co.uk