Saturday, January 21, 2023
HomeWordPress Developmentcustomized publish varieties - Two pagination in a single web page with...

customized publish varieties – Two pagination in a single web page with out AJAX


So on this situation, I am attempting to have a two pagination in a single web page, I’ve succedded doing that, on this particular web page, I am attempting to show my customized publish sort and publish on the identical time in several <part> each of them have pagination.

The issue is when I attempt to proceed to paginate the results of my customized publish sort which I will get redirected to /web page/2 the results of my publish can also be altering and displaying it is paginate 2 results– vice versa.

however what I am attempting to realize is after I go paginate outcomes let say proceed to 2 of my customized publish sort consequence which can redirect me to /web page/2 the publish consequence should not change it ought to nonetheless show web page 1 pagination consequence, whereas my customized publish sort is displaying web page/2, with out utilizing AJAX or altering the format

That is the php code of my pagination

echo paginate_links(array(
  'base' => get_pagenum_link(1) . '%_%',
  'format' => 'web page/%#%',
  'sort' => 'checklist',
  'whole' => $query->max_num_pages,
  'present' => $paged,
));

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments