Home › Forums › Support › Add a Page Number to Category Pages This topic has 4 replies, 2 voices, and was last updated 3 years, 5 months ago by David. Viewing 5 posts - 1 through 5 (of 5 total) Author Posts November 2, 2020 at 1:40 am #1514124 David Hello, Would you be able to advise how to a page number to the H1 Category Pages please. One Category page 2 example is as follows:- https://darkstories.com.au/category/australian-crime/page/2/ Australian Crime – Page 2 Your advice would be greatly appreciated please. Many thanks David November 2, 2020 at 6:35 am #1514372 DavidStaff Customer Support Hi there, try this PHP Snippet: function db_paginated_archive_title( $title ) { if ( is_category() ) { $current_page = max(1, get_query_var('paged')); $title = single_cat_title( '', false ) . '<span clas="archive-pagination"> Page ' . $current_page . '</span>'; } return $title; } add_filter( 'get_the_archive_title', 'db_paginated_archive_title', 50); November 2, 2020 at 1:08 pm #1515207 David Thank you, that works perfectly. Best Regards David November 2, 2020 at 1:08 pm #1515210 David Thank you. November 2, 2020 at 1:29 pm #1515231 DavidStaff Customer Support You’re welcome Author Posts Viewing 5 posts - 1 through 5 (of 5 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In