'navier_product',
'posts_per_page' => -1,
'orderby' => 'date',
'order' => 'DESC',
));
if ($products->have_posts()) :
$delay = 1;
while ($products->have_posts()) : $products->the_post();
$categories = get_the_terms(get_the_ID(), 'product_category');
$category_slug = $categories && !is_wp_error($categories) ? sanitize_title($categories[0]->name) : '';
?>
3) $delay = 1;
endwhile;
wp_reset_postdata();
else :
// Placeholder products if no products exist
$placeholder_products = array(
array(
'title' => 'AirSampler Pro X500',
'desc' => 'Solution de prélèvement d\'air haute performance pour environnements industriels avec certification ATEX. Débit réglable de 1 à 50 L/min.',
'tag' => 'Industriel',
'features' => array('Certification ATEX', 'Écran tactile', 'Batterie longue durée'),
),
array(
'title' => 'AirSampler Pro X700',
'desc' => 'Version avancée avec connectivité IoT et monitoring en temps réel. Idéal pour les environnements critiques.',
'tag' => 'Industriel',
'features' => array('Connectivité IoT', 'Monitoring temps réel', 'Cloud analytics'),
),
array(
'title' => 'LabAnalyzer L200',
'desc' => 'Analyseur de précision pour laboratoire avec analyse en temps réel et interface logicielle avancée.',
'tag' => 'Laboratoire',
'features' => array('Haute précision', 'Interface logicielle', 'Calibration automatique'),
),
array(
'title' => 'LabAnalyzer L300',
'desc' => 'Analyseur multi-paramètres pour analyses complexes. Compatible avec tous les protocoles standards.',
'tag' => 'Laboratoire',
'features' => array('Multi-paramètres', 'Protocoles standards', 'Export données'),
),
array(
'title' => 'MiniAir Portable M100',
'desc' => 'Solution portable ultra-compacte pour les mesures de qualité d\'air sur le terrain avec GPS intégré.',
'tag' => 'Portable',
'features' => array('Ultra-compact', 'GPS intégré', 'Autonomie 12h'),
),
array(
'title' => 'MiniAir Portable M200',
'desc' => 'Version professionnelle avec capteurs multi-gaz et transmission de données en temps réel.',
'tag' => 'Portable',
'features' => array('Multi-gaz', 'Transmission 4G', 'App mobile'),
),
);
$delay = 1;
foreach ($placeholder_products as $product) :
$category_slug = sanitize_title($product['tag']);
?>
3) $delay = 1;
endforeach;
endif;
?>