You can use this inside your is_page()
conditional :
elseif ( is_page() ) {
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
echo $page_title . ' ' . $paged . ' of '.$wp_query->max_num_pages;
}
The other way to achieve the same thing. The conditional statement serves to avoid adding a 0 besides the title at the first page :
elseif ( is_page() ) {
global $paged;
if ( $paged != 0 ) {
$custom_title = $page_title . ' Page Number : ' . $paged;
echo $custom_title;
} else {
echo $page_title;
}
}
Related Posts:
- How to customize search result page title?
- Parent category as WOOCommerce Categories widget title
- I want to customize the_posts_navigation function by replacing prev and next with images
- Add multiple custom fields to the general settings page
- Issues with title-tag and document_title_parts
- When should you, and when should you not, use wp_list_pluck()?
- Display random categories on the front page (Finding and Editing Theme Functions)
- paginate_links() don’t properly work in search.php?
- Is it possible to remove the “standard” post format?
- How to paginate the get_users function?
- Woocommerce add to simple product attribute programmatically [closed]
- Issue with get_theme_mod returning a blank value instead of the saved value
- Pagination adding page-numbers dots when using ‘mid_size’ => 0
- How to remove row-actions from pages table?
- opening links in new tab using – add_filter( ‘the_content’, ‘make_clickable’);
- Modify search function in WordPress (TwentyTwelve)
- Paged Single Post doesn’t redirect to the main url after Removing Pagination
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- How to fix a theme with page.php Default Template that accidentally deleted?
- How to style current page number (wp_link_pages)?
- Removing Unnecessary Text from Admin Menu without CSS
- Set default options for inserting media
- Default or Preset Content for Custom Post Types
- Breadcrumb how i can display page title with parent > child title with permalink ? any Idea
- Remove tag on my RSS Feed
- Display WordPress Search
- How do I change parameters without changing the core
- Problem with extract() with custom shortcode
- How to add a rel attribute to images that contains their categories?
- add sidebar area to header of child theme
- Preferred Use of home_url()?
- Custom function for user register in wp?
- Customize “the_posts_pagination” and put list instead div
- Theme-Config tab in admin Pannel?
- Creating loop within functions.php
- How to Add a Random Custom Gravatar in the WordPress Comments?
- Customized title tag for each page in pagination?
- Delete pages and Create default pages for all new network sites
- Actions according to image type and size
- Post thumbnail relative link and HTML modify
- Find first image on paginated post for Pinterest
- Post Pagination Showing Same Posts Every Page
- Refactor create_function
- adding custom classes for tables
- Pass Shortcode Attribute to footer Script
- How to mass-delete inline styles in WordPress custom post type automatically?
- How would go about if I just want a temporary function?
- Remove the deleted users avatar from list
- Generating rel=prev and rel=next only on wordpress categories
- How to call custom function from functions.php in site-wide template files?
- Customizer field value into functions.php variable
- PHP files included in functions.php don’t seem to work
- How Can I Expand the WordPress Customize window without any Plugin?
- Set quantity of woocommerce product on page visit [closed]
- wp_dropdown_categories and custom attribute
- str_replace function in theme
- Short_title character problem
- Automatically wrap multiple images in div
- Ajax not working properly
- Shortcode pagination not advancing
- Remove H1 / title / Underscore – without CSS
- is_customize_preview() like function to check if Customizer “Live Preview” in JavaScript
- Right way to update widget on dynamic new input field
- How to customly read JWPlayer’s “Playlist” items by using its “playlistid”?
- Include default functions and methods
- Hard-coding custom menu elements for menu manager
- Twentyten Child Theme: header images display messed up in admin panel
- How can I remove the main description text box in a Woocommerce product editor page? I only use the “Product short description” text box [closed]
- How can I modify all existing tags while keeping the urls themselves?
- Best practices regarding the creation of custom widgets?
- IF Statement on Button to make it complete and “uncomplete” based on user action / click
- Gravity Forms Button Text
- Find resources dynamically loading and change or add to the url
- Is possible add icon in title posts only in specific tag?
- When sale price is 0.00 show only regular price
- Unable to login using username
- Word Press – Dynamic Content [closed]
- get_next_posts_link not working without parameter max_num_pages
- Insert image in WordPress with HTML5 tag and caption function
- how can I just add to parent theme function(s) instead of redeclaring whole the function
- Pagination in relation to archive.php
- Move Custom Fields on General Settings Page to New Location
- Skeleton Child Theme Add Icon Bar to Header Flex Grid
- paginate_links() don’t properly work in search.php?
- different style sheet for just one page template
- Condition OR for current user ID
- the_posts_pagination() function returns missing page numbering on some blog pages
- How to retrieve the current post’s generated featured image size?
- Function extending with if query in functions.php
- Custom Behavior when Adding New Custom Post Type in Dashboard
- Where do I store custom functions that call custom page template files?
- Why There Is No “get content by ID” Function
- Custom HTML markup
- Custom Query Not Paginating
- Use a shortcode to display custom meta box contents
- Best way to handle lack of titles in microblogging
- Where to call my pagination function?
- Wp-query Order By problem
- Create custom function for hero image
- Randomizing wp_tag_cloud() in child theme