> >

'individual_tour', 'posts_per_page' => -1, 'meta_key' => '_experience_journey', 'meta_value' => $journey_id, 'meta_compare' => '=' ); // Če imamo shranjen vrstni red, uporabi post__in in orderby if (!empty($order_array)) { $args['post__in'] = $order_array; $args['orderby'] = 'post__in'; } $tours = new WP_Query($args); // Debug v WordPress log error_log('=== EXPERIENCE JOURNEY DEBUG ==='); error_log('Journey ID: ' . $journey_id); error_log('Found posts: ' . $tours->found_posts); error_log('Post count: ' . $tours->post_count); error_log('Max num pages: ' . $tours->max_num_pages); error_log('Query SQL: ' . $tours->request); error_log('Saved order array: ' . print_r($order_array, true)); error_log('=== END DEBUG ==='); // Dodajmo tudi vizualni debug za administratorje if (current_user_can('administrator')) { echo '
'; echo '

Debug Info (visible only to admins):

'; echo '

Found posts: ' . $tours->found_posts . '

'; echo '

Post count: ' . $tours->post_count . '

'; echo '

Journey ID: ' . $journey_id . '

'; echo '
'; } if ($tours->have_posts()) : while ($tours->have_posts()) : $tours->the_post(); // Pridobi hero sliko $hero_image_id = get_post_meta(get_the_ID(), '_hero_image', true); $image = wp_get_attachment_image_url($hero_image_id, 'full'); // Če hero slika ne obstaja, uporabi featured image if (!$image) { $image = get_the_post_thumbnail_url(get_the_ID(), 'large'); } // Če ni nobene slike, uporabi placeholder if (!$image) { $image = get_theme_file_uri('images/placeholder.jpg'); } $price = get_post_meta(get_the_ID(), '_tour_price', true); $duration = get_post_meta(get_the_ID(), '_tour_duration', true); ?>
<?php echo esc_attr(get_the_title()); ?>

days
View Details

Currently no individual tours in this category.