// In includes/um-profile-tabs.php function nailartzone_um_profile_content_parked_ideas( $args ) { error_log('[UM PARKED TAB DEBUG] Function nailartzone_um_profile_content_parked_ideas fired.'); // DEBUG $user_id_being_viewed = um_profile_id(); $current_user_id = get_current_user_id(); error_log('[UM PARKED TAB DEBUG] User being viewed: ' . $user_id_being_viewed . ', Current user: ' . $current_user_id); // DEBUG if ( $user_id_being_viewed != $current_user_id && !current_user_can('manage_options') ) { error_log('[UM PARKED TAB DEBUG] Permission denied for viewing tab.'); // DEBUG echo "

You can only view your own parked ideas.

"; return; } $parked_ideas_ids = get_user_meta( $user_id_being_viewed, '_user_parked_ideas', true ); error_log('[UM PARKED TAB DEBUG] Parked Ideas IDs from meta: ' . print_r($parked_ideas_ids, true)); // DEBUG if ( ! empty( $parked_ideas_ids ) && is_array( $parked_ideas_ids ) ) { $parked_ideas_ids = array_map('intval', $parked_ideas_ids); $parked_ideas_ids = array_filter($parked_ideas_ids); // Remove any zeros or false values from intval if (empty($parked_ideas_ids)) { error_log('[UM PARKED TAB DEBUG] Parked Ideas IDs array is empty after filtering.'); // DEBUG echo '

You haven\'t parked any ideas yet (or no valid IDs found)!

'; return; } error_log('[UM PARKED TAB DEBUG] Final Parked Ideas IDs for query: ' . print_r($parked_ideas_ids, true)); // DEBUG $parked_args = array( 'post_type' => 'nail_art_idea', 'post__in' => $parked_ideas_ids, 'posts_per_page' => -1, 'orderby' => 'post__in', 'ignore_sticky_posts' => 1, 'post_status' => 'publish' // Ensure we only fetch published posts ); $parked_query = new WP_Query( $parked_args ); error_log('[UM PARKED TAB DEBUG] WP_Query executed. Found posts: ' . $parked_query->found_posts); // DEBUG if ( $parked_query->have_posts() ) { error_log('[UM PARKED TAB DEBUG] Query has posts. Starting loop.'); // DEBUG echo '
'; while ( $parked_query->have_posts() ) { $parked_query->the_post(); // ... (your display code for each item) ... echo '
'; if ( has_post_thumbnail() ) { echo ''; the_post_thumbnail('medium'); echo ''; } else { echo '
No Image
'; } echo '

' . get_the_title() . '

'; echo '
'; } echo '
'; wp_reset_postdata(); } else { error_log('[UM PARKED TAB DEBUG] Query had no posts.'); // DEBUG echo '

You haven\'t parked any ideas yet (or parked items are no longer published)!

'; } } else { error_log('[UM PARKED TAB DEBUG] _user_parked_ideas meta was empty or not an array.'); // DEBUG echo '

You haven\'t parked any ideas yet!

'; } } July 2024 - Hauserinfo

The Ultimate hot pink nail designs Gallery

hot pink nail designs

Welcome to Hauserinfos Ladies Nails! ? Ladies, welcome to your exclusive nail haven! ? I’m your host, Hauserinfos, and I’m thrilled to have you here at the Ladies Club Nails Show hot pink nail designs. As a gentleman, I’m passionate about showcasing the beauty and creativity of nail art. This blog is dedicated to celebrating … Read more

birthday nails ideas

nails 3 2

Welcome to Hauserinfos Ladies Nails! ? Ladies, welcome to your exclusive nail haven! ? I’m your host, Hauserinfos, and I’m thrilled to have you here at the Ladies Club Nails Show birthday nails ideas. As a gentleman, I’m passionate about showcasing the beauty and creativity of nail art. This blog is dedicated to celebrating all … Read more