View Single Post
Old January 17th, 2012, 03:01 PM
meinehandtasche meinehandtasche is offline
Join Date: Jul 2011
Posts: 43

Store ID: 32722
Website URL:
URL to page in question:

Hi Eric,

I copied this code into the functions.php of my wordpress theme (lifestyle from studiopress):

//Function to Get Brands
function dfr_get_brands() {
global $wpdb;
$merchants = $wpdb->get_results("SELECT DISTINCT p.brand FROM ".$wpdb->prefix."dfr_shop_products p, ".$wpdb->prefix."wp_dfr_shop_p2c pc, ".$wpdb->prefix."wp_dfr_shop_cats c AND pc.cat_id = AND = \'Woks\' ORDER BY, p.brand");
$html = '';
foreach ($brands as $brands) {
$html .= '<option value="'.$brands->brand.'">'.$brands->brand.'</option>';
return $html;
and I copied this code into a new view category widget within the datafeedr factory:


<!-- code for your vuew -->
<form method="get">
<?php echo dfr_get_brands(); ?>
<input type="submit" value="Go" />
but it doesn't look like it should. Please scroll down on this page
and you can see the black list of words under the header "MARKEN".

I don't have a clue actually what this list is showing. The result should look like under the header "MARKEN FILTER".

Do you have any idea what went wrong?