Members widget problem
-
I got $limit = 5 (changed in widget options like everyone does) for users to show in this widget. So all tabs at first look uses limit 5. But if i click on ajaxed link on top of this widget ‘Active’ or ‘Popular’ i got limit = 10 for this category.. why that? and how to fix this issue?
I had this weird problem in “Members widget” since the begining, but i harcoded this:
function get_newest_users( $limit = null, $page = 1 ) {
global $wpdb;
if ( $limit && $page )
$pag_sql = $wpdb->prepare( " LIMIT %d, 5", intval( ( $page - 1 ) * $limit), intval( $limit ) );
...So now i want two pages with different limits, so this is not an option..
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Members widget problem’ is closed to new replies.