HEX
Server: Apache/2.4.68 (Debian)
System: Linux as-cs-widget-demo-us-central1 6.1.0-44-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
User: root (0)
PHP: 8.2.32
Disabled: NONE
Upload Files
File: /var/www/kevin-demo/wp-content/themes/fitmencook/recipes2.php
<?php
get_header();
$featured_image = get_field('featured_recipe_image', 'option');
$size = 'full';

// Unesi imena kategorija koje želiš da isključiš
$category_names = array('Multiple Recipes');
$category_ids = array();
foreach ($category_names as $category_name) {
    $category = get_term_by('name', $category_name, 'recipe-category');
    if ($category) {
        $category_ids[] = $category->term_id;
    }
}
$ex_cats = $category_ids; // Kategorije koje želimo da isključimo
?>
<div class="fmc_archive_wrap fmc_container spacing_2">
    <?php if (function_exists('yoast_breadcrumb')) { yoast_breadcrumb('<div class="fmc_breadcrumbs spacing_0_2">', '</div>'); } ?>

    <?php 
    $featured_posts = get_field('featured_recipe', 'option');
    if ($featured_posts && !isset($_GET['ingredient'])) : 
        foreach ($featured_posts as $feature_post) :
            global $post;
            $post = $feature_post;
            setup_postdata($post);
            $categories = get_the_terms($post->ID, 'recipe-category');
            if ($categories && !has_term($ex_cats, 'recipe-category', $post->ID)) {
                $calculations = meal_plan_calculations(true);
                $template_slug = get_page_template_slug();
    ?>
                <div class="fmc_featured_post fmc_featured_recipe">
                    <div class="fmc_featured_left">
                        <a href="<?php the_permalink(); ?>">
                            <?php if ($featured_image) { echo wp_get_attachment_image($featured_image, $size); } else { the_post_thumbnail('large'); } ?>
                        </a>
                    </div>
                    <div class="fmc_featured_right">
                        <span class="fmc_featured_prefix"><?php echo get_field('featured_prefix', 'option'); ?></span>
                        <div class="fmc_grid_meta">
                            <span class="fmc_grid_cat">
                                <?php if (!empty($categories)) { echo '<a href="' . esc_url(get_category_link($categories[0]->term_id)) . '">' . esc_html($categories[0]->name) . '</a>'; } ?>
                            </span>
                        </div>
                        <a href="<?php the_permalink(); ?>">
                            <h2 class="fmc_title_1"><?php the_title(); ?></h2>
                        </a>
                        <div class="fmc_featured_rating">
                            <?php echo get_avarage_rating(get_the_ID(), 'sidebar'); ?>
                        </div>
                        <?php if ($template_slug === 'single-recipes-multiple.php') : ?>
                            <div class="fmc_featured_macros">
                                <?php if ($calculations['totals']) : $calculations_count = 1; ?>
                                    <?php foreach ($calculations['totals'] as $label => $total) : if ($total === 0) continue; ?>
                                        <div class="rg_macro <?php if ($calculations_count === 1) echo "calories"; ?>">
                                            <span class="rg_m_title"><?php if ($calculations_count === 1) echo "Cal"; else echo $label; ?></span>
                                            <span class="rg_m_amount"><?php echo $total; ?></span>
                                        </div>
                                    <?php $calculations_count++; endforeach; ?>
                                <?php endif; ?>
                            </div>
                            <?php if ($calculations['total_times']) : ?>
                                <div class="fmc_featured_prep">
                                    <?php foreach ($calculations['total_times'] as $single_time) : if ($single_time['hours'] || $single_time['min']) : ?>
                                        <div class="fmc_f_time_container">
                                            <span class="fmc_time"><?php echo $single_time['label']; ?></span>
                                            <?php if ($single_time['hours']) : ?>
                                                <span class="fmc_amount"><?php echo $single_time['hours']; ?></span>
                                            <?php endif; ?>
                                            <?php if ($single_time['min']) : ?>
                                                <span class="fmc_amount"><?php echo $single_time['min']; ?></span>
                                            <?php endif; ?>
                                        </div>
                                    <?php endif; endforeach; ?>
                                </div>
                            <?php endif; ?>
                        <?php else : ?>
                            <div class="fmc_featured_macros">
                                <div class="rg_macro calories">
                                    <span class="rg_m_title">Cal</span>
                                    <span class="rg_m_amount"><?php echo get_field('calories'); ?></span>
                                </div>
                                <div class="rg_macro carbs">
                                    <span class="rg_m_title"><?php echo get_field('l_carbs', 'option'); ?></span>
                                    <span class="rg_m_amount"><?php echo get_field('carbs'); ?>g</span>
                                </div>
                                <div class="rg_macro fat">
                                    <span class="rg_m_title"><?php echo get_field('l_fat', 'option'); ?></span>
                                    <span class="rg_m_amount"><?php echo get_field('fat'); ?>g</span>
                                </div>
                                <div class="rg_macro protein">
                                    <span class="rg_m_title"><?php echo get_field('l_protein', 'option'); ?></span>
                                    <span class="rg_m_amount"><?php echo get_field('protein'); ?>g</span>
                                </div>
                            </div>
                            <div class="fmc_featured_prep">
                                <div class="fmc_f_time_container">
                                    <span class="fmc_time"><?php echo get_field('l_prep_time', 'option'); ?>:</span>
                                    <span class="fmc_amount"><?php if (get_field('prep_hours')) { echo get_field('prep_hours'); ?>h <?php } ?> <?php echo get_field('prep_time'); ?><?php echo get_field('minutes', 'option'); ?></span>
                                </div>
                                <div class="fmc_f_time_container">
                                    <span class="fmc_time"><?php echo get_field('l_cook_time', 'option'); ?>:</span>
                                    <span class="fmc_amount"><?php if (get_field('cook_hours')) { echo get_field('cook_hours'); ?>h <?php } ?> <?php echo get_field('cook_time'); ?><?php echo get_field('minutes', 'option'); ?></span>
                                </div>
                                <div class="fmc_f_time_container">
                                    <span class="fmc_time"><?php echo get_field('l_total_time', 'option'); ?>:</span>
                                    <span class="fmc_amount"><?php if (get_field('total_hours')) { echo get_field('total_hours'); ?>h <?php } ?> <?php echo get_field('total_time'); ?><?php echo get_field('minutes', 'option'); ?></span>
                                </div>
                            </div>
                        <?php endif; ?>
                    </div>
                </div>
    <?php 
            } 
        endforeach; 
        wp_reset_postdata(); 
    endif; 
    ?>

    <h2>Cuisine</h2>
<div style="width: 100%; height: 2px; background-color: #ededed; margin: 10px 0;"></div>    <div class="test_images">
        <div style="display: flex; flex-wrap: wrap;">
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>SOULFOOD /SOUTHERN</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>AMERICAN</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>MEDITERRANEAN</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>ASAIN</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>LATIN AMERICAN</p>
                </a>
            </div>
            <div style="clear: both;"></div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>EUROPEAN</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>AFRICAN</p>
                </a>
            </div>
            <div style="clear: both;"></div>
        </div>
    </div>
    
        <h2>Diet</h2>
        
<div style="width: 100%; height: 2px; background-color: #ededed; margin: 10px 0;"></div>
    <div class="test_images">
        <div style="display: flex; flex-wrap: wrap;">
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/vegan/">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/01/coconut-corn-soup-3.jpg" alt="">
                    <p>VEGAN</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/vegetarian/">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/01/whipped-feta-tzatziki-3-1536x864.jpg" alt="">
                    <p>VEGETERIAN</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/paleo/">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/03/madagascar-coconut-fish-recipe-5.jpg-1-1.webp" alt="">
                    <p>PALEO</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/gluten-free/">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/01/lamb-turkey-meatballs-4-1536x864.jpg" alt="">
                    <p>GLUTEN-FREE</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/grain-free/">
                    <img src="https://fitmencook.com/wp-content/uploads/2024/12/protein-probiotic-parfait-8.jpg" alt="">
                    <p>GRAIN FREE</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/dairy-free/">
                    <img src="https://fitmencook.com/wp-content/uploads/2024/08/roasted-red-pepper-tomato-pesto-2.jpg.webp" alt="">
                    <p>DIARY-FREE</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/low-carb/">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-7.jpg" alt="">
                    <p>LOW CARB / KETO (LESS THAN 30G)</p>
                </a>
            </div>
            <div style="clear: both;"></div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/high-carb/">
                    <img src="https://fitmencook.com/wp-content/uploads/2024/06/salmon-wellington-recipe-10.jpg.webp" alt="">
                    <p>HIGH CARB (GREATER THAN50G)</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>HI-PROTEIN</p>
                </a>
            </div>
            <div style="clear: both;"></div>
        </div>
    </div>
    
    <h2>Type of Meal</h2>
    
<div style="width: 100%; height: 2px; background-color: #ededed; margin: 10px 0;"></div>
    <div class="test_images">
        <div style="display: flex; flex-wrap: wrap;">
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>NO COOK</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>COLD MEAL</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/meal-prep/">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/cajun-curry-coconut-shrimp-soup-3.jpg" alt="">
                    <p>MEAL PREP FRIENDLY</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/breakfast/">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/03/EGG.jpg" alt="">
                    <p>Breakfast</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>LUNCH</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/dinner/">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/01/Mexican-Meal-Prep-Ideas.webp" alt="">
                    <p>DINNER</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>SMOOTHIES</p>
                </a>
            </div>
            <div style="clear: both;"></div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>JUICES / DRINKS</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/salad/">
                    <img src="https://fitmencook.com/wp-content/uploads/2024/10/southwest-dense-bean-salad-pour-1.jpg" alt="">
                    <p>SALADS</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/snacks/">
                    <img src="https://fitmencook.com/wp-content/uploads/2024/12/Homemade-Grinch-Cookies-1.png" alt="">
                    <p>SNACKS (APPETIZER)</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/soups/">
                    <img src="https://fitmencook.com/wp-content/uploads/2024/09/creamy-zucchini-soup-collage-steps-C-1.jpg.webp" alt="">
                    <p>SOUPS</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/sandwiches/">
                    <img src="https://fitmencook.com/wp-content/uploads/2024/08/chicken-panini-roasted-red-pepper-tomato-pesto-5.jpg.webp" alt="">
                    <p>SANDWICHES / WRAPS</p>
                </a>
            </div>
            <div style="clear: both;"></div>
        </div>
    </div>

    <h2>Protein / Ingridient</h2>
    
<div style="width: 100%; height: 2px; background-color: #ededed; margin: 10px 0;"></div>
    <div class="test_images">
        <div style="display: flex; flex-wrap: wrap;">
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/chicken/">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/01/quinoa-crusted-chicken-tenders-10-1536x864.jpg" alt="">
                    <p>CHICKEN</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/beef/">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/bison-chopped-salad-taco-bowl-8.jpg" alt="">
                    <p>BEEF</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/turkey/">
                    <img src="https://fitmencook.com/wp-content/uploads/2024/11/thanksgiving-turkey-rice-3.jpg.webp" alt="">
                    <p>TURKEY</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/seafood/">
                    <img src="https://fitmencook.com/wp-content/uploads/2024/12/shrimp-stirfry-soup-5.jpg" alt="">
                    <p>SEAFOOD</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="https://fitmencook.com/recipes/category/protein-powder/">
                    <img src="https://fitmencook.com/wp-content/uploads/2024/07/key-lime-pie-chia-mousse-2.jpg" alt="">
                    <p>PROTEIN POWDER</p>
                </a>
            </div>
            <div style="clear: both;"></div>
        </div>
    </div>
    
        <h2>Tools / Utensils</h2>
        
<div style="width: 100%; height: 2px; background-color: #ededed; margin: 10px 0;"></div>
    <div class="test_images">
        <div style="display: flex; flex-wrap: wrap;">
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>ONE POT</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>AIR FRYER / OVEN</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>SHEET PAN MEAL</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>BLENDER</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>INSTANT POT (MULTICOOKER) - SLOW COOKER</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>GRILL / SMOKER</p>
                </a>
            </div>
            <div style="clear: both;"></div>
        </div>
    </div>
    
            <h2>Holidays / Seasons</h2>
            
<div style="width: 100%; height: 2px; background-color: #ededed; margin: 10px 0;"></div>
    <div class="test_images">
        <div style="display: flex; flex-wrap: wrap;">
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>HALLOWEEN</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>THANKSGIVING</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>CHRISTMAS (KWANZAA)</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>NYE</p>
                </a>
            </div>
            <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>VALENTINE'S</p>
                </a>
            </div>
                        <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>MOTHER'S DAY</p>
                </a>
            </div>
                                    <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>FATHER'S DAY</p>
                </a>
            </div>
                                    <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>WINTER</p>
                </a>
            </div>
                                    <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>FALL</p>
                </a>
            </div>
                                    <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>SPRING</p>
                </a>
            </div>
                                    <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>SUMMER</p>
                </a>
            </div>
            <div style="clear: both;"></div>
        </div>
    </div>
    
                <h2>Entertaining</h2>
                
<div style="width: 100%; height: 2px; background-color: #ededed; margin: 10px 0;"></div>
    <div class="test_images">
        <div style="display: flex; flex-wrap: wrap;">
                                    <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>GAME DAY / TAILGATING</p>
                </a>
            </div>
                                    <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>PARTIES</p>
                </a>
            </div>
                                    <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>APPETIZER</p>
                </a>
            </div>
                                    <div class="imagerec2" style="width: 23%; margin-right: 1%; margin-bottom: 20px;">
                <a href="#">
                    <img src="https://fitmencook.com/wp-content/uploads/2025/02/ginger-chicken-stirfry-meal-prep-6.jpg" alt="">
                    <p>DATE NIGHT (VALENTINE'S)</p>
                </a>
            </div>
            <div style="clear: both;"></div>
        </div>
    </div>
    
    
                    <h2>Browse Recipes</h2>
                
<div style="width: 100%; height: 2px; background-color: #ededed; margin: 10px 0;"></div>

<div class="fmc_recipe_filter">
    <form method="GET" action="" style="border: 1px solid #ededed; border-radius: 7px; background-color: white;">
        <select name="recipe-category" onchange="this.form.submit()" style="padding: 10px; background-color: white; border: none;">
            <option value=""><?php _e('Select a Category', 'your-theme-textdomain'); ?></option>
            <?php 
            $filter_categories = get_terms([
                'taxonomy' => 'recipe-category',
                'hide_empty' => false, // Prikazuj i prazne kategorije
            ]);

            if (!empty($filter_categories) && !is_wp_error($filter_categories)) {
                $excluded_category_slug = 'multiple-recipes';

                foreach ($filter_categories as $filter_category) {
                    // Isključivanje određene kategorije
                    if ($filter_category->slug === $excluded_category_slug) {
                        continue;
                    }

                    // Provera selektovane kategorije
                    $selected = isset($_GET['recipe-category']) && $_GET['recipe-category'] === $filter_category->slug ? 'selected' : '';
                    echo '<option value="' . esc_attr($filter_category->slug) . '" ' . $selected . '>' . esc_html($filter_category->name) . '</option>';
                }
            } else {
                echo '<option disabled>' . __('No categories available', 'your-theme-textdomain') . '</option>';
            }
            ?>
        </select>
    </form>
</div>



       <div class="fmc_recipe_grid fmc_archive_main" style="width: 100%;">
        <div class="fmc_archive_inner fmc_rg_inner">
            <?php 
            while (have_posts()) : the_post(); 
                if (!has_term($ex_cats, 'recipe-category')) : 
                    get_template_part('template-parts/recipe/recipe-grid2'); 
                endif; 
            endwhile; 
            ?>

        </div>
    </div>
 <div class="spacing_3_1">
            <?php fmc_pagination(); ?>
        </div>

</div>
<?php
get_footer();
?>