// 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!

'; } } Email Confirmation - Hauserinfo

Email Confirmation

Confirm Your Email Address

Thank you for registering! To complete the registration process, please check your inbox for an email from hauserinfo. Click the link in the email to verify your email address and activate your account.

Didn’t receive the email?