Skip to main content
25 events
when toggle format what by license comment
Apr 5, 2019 at 10:58 history edited Adham Mohamed CC BY-SA 4.0
added 1827 characters in body
Apr 5, 2019 at 10:29 history edited Adham Mohamed CC BY-SA 4.0
added 1567 characters in body
Mar 23, 2019 at 17:52 comment added Qaisar Feroz Stay blessed! Always
Mar 23, 2019 at 17:49 comment added Adham Mohamed Yes!!!!, Thanks, I hope i can give you million +1
Mar 23, 2019 at 17:46 comment added Qaisar Feroz Set $rank=$offset; and $rankpostcount=$offset;
Mar 23, 2019 at 17:41 comment added Qaisar Feroz Let me check the code again.
Mar 23, 2019 at 17:40 comment added Adham Mohamed All numbers not calculating from number 1, started from 21, maybe should I change $rank++; as well ?
Mar 23, 2019 at 17:32 comment added Qaisar Feroz Try replacing $rank=0; with ` $rank=$page * $limit;`
Mar 23, 2019 at 17:22 vote accept Adham Mohamed
Mar 23, 2019 at 17:21 comment added Adham Mohamed But there are small problem, the ranking changed in each page, so how can i keep ranking for each user, check link again please
Mar 23, 2019 at 17:21 answer added Qaisar Feroz timeline score: 2
Mar 23, 2019 at 17:16 comment added Adham Mohamed OMG! Working :), Thanks so much, You make my day, Please add it as answer so i can accept it, Thank you again.
Mar 23, 2019 at 17:12 comment added Qaisar Feroz Change $page = ! empty( $_GET['page'] ) ? (int) $_GET['page'] : 1; and $link = get_the_permalink().'?page=%d'; to $page = ! empty( $_GET['pg'] ) ? (int) $_GET['pg'] : 1; and $link = get_the_permalink().'?pg=%d'; I mean avoid using page in ` $_GET []` as it creates a conflict with pretty links used by WP.
Mar 23, 2019 at 17:04 comment added Adham Mohamed Thanks so much for your support, here is my page link
Mar 23, 2019 at 17:03 comment added Qaisar Feroz Can you share the output of echo $pagerContainer;. Or if the site is online share the link to page were this pagination is required.
Mar 23, 2019 at 16:59 comment added Adham Mohamed Still not working :(
Mar 23, 2019 at 16:55 comment added Qaisar Feroz Don't use template file link , Try $link = get_the_permalink().'?page=%d';
Mar 23, 2019 at 16:52 comment added Adham Mohamed Yes, I replaced with my template page top-artists-full-list.php but not working, Or what should i add instead of index.php?
Mar 23, 2019 at 16:39 comment added Qaisar Feroz Did you changed index.php with your current page link on line $link = 'index.php?page=%d';
Mar 23, 2019 at 15:48 comment added Adham Mohamed I updated my question, Kindly check, Thanks
Mar 23, 2019 at 15:47 history edited Adham Mohamed CC BY-SA 4.0
added 3759 characters in body
Mar 23, 2019 at 14:54 comment added Adham Mohamed Thanks @QaisarFeroz, I tried it but I can't get the next page!
Mar 23, 2019 at 12:38 comment added Qaisar Feroz This may work as guide to resolve your issue.
Mar 23, 2019 at 11:38 history edited Adham Mohamed CC BY-SA 4.0
deleted 118 characters in body
Mar 23, 2019 at 8:14 history asked Adham Mohamed CC BY-SA 4.0