Hi,
I am creating custom query with wp_query, and display it within main loop. I use 's' parameter to display the search result.
Everything is fine, but I got this warning :
Notice: Trying to get property of non-object in /var/www/example/wp-content/plugins/paid-memberships-pro/paid-memberships-pro.php on line 770 Notice: Trying to get property of non-object in /var/www/example/wp-content/plugins/paid-memberships-pro/paid-memberships-pro.php on line 778
When I check on the files it was this line if($current_user->membership_level->ID) that cause this problem. Any idea how to make it right?