Well, this really should be in the WordPress area not general help, but, does not matter…
You are sending data to a WP function somewhere else in your code named paginate_links. To debug this issue, you must look at that function and trace what is being sent to it. If the data sent to it, meaning the array of data, is correct, then the problem is in that function. If the data sent to it is incorrect, then it is in the code you posted.
Also, you use another function named get_query_var and send $paged to it. You might be sending the incorrect value to it. Since the “current” page stays at one, my guess is that the get_query_var(‘page’) part of the array is not calculating the value correctly and therefore sends “1” as the ‘current’ page.
Perhaps you should show us the get_query_var() function? Hard to follow your code without more info.
No, it can not be. You have dozens of function calls to routines. All of them are on your site in the WordPress folders somewhere. If this is a “canned” website, it will have documentation of each of these functions and you need to learn them all. If you wrote this WordPress code yourself, where are all the functions calls located? You did not show them. Some of these are:
get_header();
get_query_var();
new WP_Query();
get_post_meta();
etc…
These must be somewhere in your site. My guess is that you need to look at the page that loads all of this page and in there would be INCLUDE’s that add in other files. In them, you will find the items I mentioned before. And, look at the pagination sections I mentioned.
Well, not really sure how to help you, but, this line calls a function called get_query_var and I would guess it is the current page number. If it does not return a page number, it assign’s it to page # 1.
Therefore, in the section that displays the page numbers for the pagination section
This appears to use a variable “paged” which is either the current page or 1 depending on the results form the previous code I noted. And, it is used inside the paginate_links() function. You need to locate that function and see what it does. My guess is that it is not creating your links correctly in that function. I do not see that function anywhere in the code you posted.
Frustrated? I understand. Altering WordPress systems can be annoying! So many pages behind the scenes for different areas. But, pagination is usually easy to sort out.
One thing you can try is to go to the live page and VIEW-SOURCE of the page. Then, look down to where the pagination links are posted and see what data is in them. If you do not know this, you can look at all the HTML and CSS code on any page in the world by just RIGHT-CLICK on it and select VIEW-SOURCE or VIEW-PAGE-SOURCE depending on the browser you are in. This will show you the code. It will NOT show you the PHP code, but, it will let you see what the PHP code is placing into the links for the pagination. Hope that helps.
The other way would be to hire someone to look at it, or to give your login info to someone here so they can see all your pages and sort it out for you. If you do that, please do not post that info live here. Post it to them in a PRIVATE message so the world does not get your login info.