[insert_php] global $wpdb;
$actual_c = filter_input( INPUT_GET, «c», FILTER_SANITIZE_STRING);
if($actual_c == «») $actual_c = 1;
if(!is_numeric($actual_c)) $actual_c = 1;
$products = $wpdb->get_row(«SELECT * FROM productos WHERE nrogrupo =».$actual_c );

//echo $products -> categoria;
[/insert_php]

echo $products -> imgcategoria;[/insert_php]» bg_position=»center center» bg_repeat=»no-repeat» bg_color=»#16663e» scene_position=»center» text_color=»light» text_align=»left» id=»[insert_php] echo strtolower(str_replace(» «,»», $categoria)); [/insert_php]» row_name=»[insert_php] echo $products -> categoria; [/insert_php]» id=»categorias» disable_ken_burns=»yes» overlay_strength=»1.0″ top_padding=»15%» bottom_padding=»15%»]

[insert_php]
echo $products -> categoria;
$allsubcat = $wpdb->get_results(«SELECT DISTINCT subcategoria FROM productos WHERE nrogrupo=».$actual_c);
[/insert_php]

[insert_php]echo $products -> descripcategoria;[/insert_php]

[insert_php]if( $allsubcat[0] -> subcategoria != «» ) { echo ‘

‘; }
[/insert_php] [insert_php]if( $allsubcat[1] -> subcategoria != «» ) { echo ‘

‘; }
[/insert_php] [insert_php]if( $allsubcat[2] -> subcategoria != «» ) { echo ‘

‘; }
[/insert_php] [insert_php]if( $allsubcat[3] -> subcategoria != «» ) { echo ‘

‘; }
[/insert_php] [insert_php]if( $allsubcat[4] -> subcategoria != «» ) { echo ‘

‘; }
[/insert_php] [insert_php]if( $allsubcat[5] -> subcategoria != «» ) { echo ‘

‘; }
[/insert_php]