• Resolved Orin

    (@orin)


    If trying to get the page number, is there a function to do this? Or would I need to do something complicated like so:

    if is_paged('2') $pagenum = 2;
    if is_paged('3') $pagenum = 3;
    ...

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Orin

    (@orin)

    …Since that’s not possible, as I found out, allow me to rephrase: is there a method to access the current page number?

    Thread Starter Orin

    (@orin)

    Gimme enough times trying and I’ll eventually hit on it… the variable I was looking for was ‘$paged‘, everyone, ‘$paged‘. All of you who couldn’t answer within the two hour limit — you just failed WordPress challenge.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Function to access page number?’ is closed to new replies.