Print page numbers in each page footer

Hi all !
Any idea on how to print page number in each footer in a report template ? I want to achieve something like this : skip the first generated page and begin the page count as 1 in the second page.

Thank you !

Hi @Maintenance

Welcome to the MainWP Community!

Something like this requires editing the PHP file of a Pro Report template.

You can find more information about that in this KB under the “Create Custom Report Templates” section:

Adding a page number to every page can be done by adding the following code in the PHP file:

This will, however, not skip the initial page.
That is somewhat beyond my knowledge, so please do feel free to do some research into the counter() function for more information:

Thank you for your answer :slight_smile:
Will try it and let you know.
PS : i do have a footer with tag which contains some information and made it to appear only in the last page.

1 Like

That worked like a charm !
Again thank you !

1 Like

Perfect, I’m glad it worked.

You are most welcome.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.