Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8561217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:27:13+00:00 2026-06-11T16:27:13+00:00

I have a function which named kriesi_pagination this is a function for showing page

  • 0

I have a function which named kriesi_pagination this is a function for showing page numbers in php. I wrote the codes in function.php for my site. And I call this function in index.php for showing the page numbers in index. I use this code in index : <?php kriesi_pagination(); ?>

Now the question is what should I do if I want to show the page numbers in other places such as category. It just show the page numbers in home page of site not any other places.

I want to have page numbers for the categories like sports, musics, technology, …..

By the way I use wordpress cms for my website.

Please help me to solve this problem

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:27:14+00:00Added an answer on June 11, 2026 at 4:27 pm

    You should be able to use the query var value for paged to get the current page number:

    function echo_page_number(){
        $page_number = isset($wp_query->query_vars["paged"])?
            $wp_query->query_vars["paged"] : // page number
            1; // not set, default to 1
        echo $page_number;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my model named Profile_model I have this function which retrieves profile data for
Suppose I have a function named caller, which will call a function named callee:
In PHP you have the create_function() function which creates a unique named lambda function
I have a controller named categories in which I have function description($id=null) { $this->load->helper(array('form',
I have a function in view.py which returns two variables i.e. a dictionary named
I have a class named toto which I send to a function that does
I have a function which looks something like this, it returns a noncopyable class
I have a function which accepts a parameter named IV. Is there anyway that
I have a function in powershell 2.0 named getip which gets the IP address(es)
Hi I have the following code in which I am calling a function named

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.