WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: WP-PageNavi] Fatal error: Call to undefined method WP_User_Query::get()

[Resolved] [Plugin: WP-PageNavi] Fatal error: Call to undefined method WP_User_Query::get()

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author scribu
    Member

    @scribu

    $wp_query = new WP_User_Query($args);

    You shouldn’t replace $wp_query with a WP_User_Query instance. Use $user_query instead.

    For WP PageNavi to work with users, you can do this:

    wp_pagenavi( array(
      'query' => $user_query,
      'type' => 'users'
    ) );

    Thanks scribu for the prompt reply.

    Made the amends and this now functionally correctly.

    Many Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] [Plugin: WP-PageNavi] Fatal error: Call to undefined method WP_User_Query::get()’ is closed to new replies.