-
Hello. It’s show me pagination for now for this shortcode but we get redirect.. Always from something like: domain.com/profile/name/paged/2/ it’s dont work, its always get paged 1 (something like profile was redirect to profile homepage?)?
API.php:
PHP1234if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }else { $paged = 1; }$args['paged'] = $paged;And standard to test in postbyuser.php:
PHP12345678910$big = 999999999; // need an unlikely integerecho paginate_links( array('base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),'format' => '?paged=%#%','current' => max( 1, get_query_var('paged') ),'total' => $post_query->max_num_pages) );I’ve already asked Ahmed about this, he says it’s on his todo list.
Its very hard what i see.. I mean the problem it’s with getting paged from current page. Function don’t want to get that from query..
Yes, it’s something to do with userpro not paginating on the profile page properly, Ahmed says he’ll fix it, so he will fix it. 🙂
I cannot get paged number in postbyuser template… BUt i don’t know why.. I try to add some global variables but it’s don’t help.
For now i don’t get any help from this support. All my questions it’s to hard and they don’t want give any response.. Any..
The problem it’s with getting current page number in user profile with that..
Yes exactly. This is in my todo list already. I appreciate your patience. 🙂
You must be logged in to reply to this topic.