// 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 2023 - Hauserinfo

7 top new how to add images to a blog post

Copy of Copy of Copy of Copy of Copy of Blue Bold Business YouTube Thumbnail 19

Author Bio: David A. Hauser is the founder and CEO of Hauser Info, a company that provides information and resources for online entrepreneurs. He is also an affiliate for Namecheap, a leading provider of web hosting and domain registration services. How to Choose Images That Will Make Your Blog Post Pop how to add images … Read more

11 top new best blogging platforms

Copy of Copy of Copy of Copy of Copy of Blue Bold Business YouTube Thumbnail 1

What is a Blogging Platform? best blogging platforms best blogging platforms Best blogging platforms: A blogging platform is a software application that allows you to create and publish blog posts. It provides you with a way to share your thoughts and ideas with the world, and it can be a great way to build an … Read more

7 top new how to make money from blogging

Copy of Copy of Copy of Copy of Blue Bold Business YouTube Thumbnail 4 1

How to Monetize Your Blog with Affiliate Marketing: How to Make Money from Blogging How to Monetize Your Blog with Affiliate Marketing: How to make money from blogging: Affiliate marketing is a great way to make money from your blog. It’s a commission-based system where you promote other people’s products or services on your blog … Read more

13 top good new the future of blogging

db4c102e 8f44 4e6a a2c0 14f206004e63

The Future of Blogging: Trends and Predictions for the Years Ahead The future of blogging and blogging has come a long way since its humble beginnings. As we move into an ever-evolving digital landscape, what does the future hold for this powerful form of content creation? Let’s dive into the trends and innovations shaping blogging’s … Read more