WordPress.org

Ready to get started?Download WordPress

Forums

Paid Memberships Pro
Warning on custom search query (1 post)

  1. TC.K
    Member
    Posted 1 year ago #

    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?

    http://wordpress.org/extend/plugins/paid-memberships-pro/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic