undefined property “query” in profile tab changes
-
we have a snippet of code to add a tab in the profile page to display a custom post type list. the query is based on this link
https://docs.ultimatemember.com/article/51-custom-profile-tab-example-showing-user-pages
we set up our query like the one below
global $ultimatemember;
$loop = $ultimatemember->query->make(‘post_type=must_have&posts_per_page=10&offset=0&author=’ . um_profile_id() );But we get an error that says
Undefined property: UM::$query
and because the $query property is undefined, we get an error
Uncaught error: Call on a function make() on null.
We have Ultimate member 2.0.17. How could we fix this issue?
thanks
The topic ‘undefined property “query” in profile tab changes’ is closed to new replies.