I suppose the obvious alternative is having logic in content-page.php that checks to see if it’s paged content and outputs differently if that’s the case.
Basically.
In content-page.php
:
get_header();
//WordPress has a global variable for whether a post/page is paginated or not
global $paged;
// If post/page isn't paginated
if ($paged === 0) {
//Do stuff that you want for non-paginated posts/pages
}
//If post/page is paginated
else {
include 'content-page-paginated.php';
}
get_footer();
(Edit: changed $multipage
to $paged
as per Nathan’s comment)
Related Posts:
- Jetpack Infinite scroll conflicting with theme’s pre_get_posts custom posts_per_page
- Pagination, query more pages at once
- Update Gallery Randomly in every hour with no duplicates?
- How to make infinite scroll by dividing the content?
- How to determine if theres a next page
- Why do you need an unlikely integer in paginating?
- How to get the number of Pages in a single Post Pagination?
- Next/Previous Links in same category
- How To create ajaxed wp-pagenavi?
- Using paginate_links() to generate “1, 2, 3 … 10, 20, 30, 40… 55” paginations
- Combining WordPress pagination functions for archives and search results
- Passing custom args in paginate_links
- Paginate a list of users?
- Allow Users to Choose Pagination or Next/Previous (Combine)
- Pagination that includes “view all on one page”
- Custom page-links for paginated posts | wp_link_pages quicktag
- Jetpack plugin – ‘posts_per_page’ not overriding ‘Blog pages show at most’ option, also different values for different post types?
- Pagination with get_posts seems to work but links not showing
- How to let crawlers search paginated comments?
- In pagination, change link for page 1 to homepage
- Frontpage pagination issue with paginate_links() function
- pagination with sticky posts
- How do I insert CSS into a function?
- wp_list_categories pagination
- Insert pagination links – wp_link_pages() – before filters on posts
- Remove h2 Tag in screen_reader_text
- Pagination for multiple queries for different authors on author.php
- WordPress 5.5 breaks pagination in an older plugin
- How to get “nexepagelink” and “previoiuspagelink” in wp_link_pages?
- Paginate Pages by only showing 3 pages at most
- Using Pagination with Timber Routes
- next_post_link for CPT only working for a few posts? weird!
- Is it possible to have pagination with an offset loop?
- Authors list Pagination?
- Site pagination issue
- Archive page pagination links redirecting to home page instead of going next page
- Exclude certain post formats from pagination
- How to use pagination on costum post type
- How to make WP Query Pagination work
- Archive pagination not working
- How to customize pagination links?
- Wp pagination for custom database table
- How to customize wp_link_pages()?
- How to implement a slideshow on WP similar to these examples?
- Pagination for search results from a custom query
- Page with Multiple Loops Breaking Pagination
- Can posts_nav_link show post titles?
- The paging is very slow under a large number of articles
- Custom admin page pagination permissions error
- Pagination – not progressing
- Woocommerce products per page dropdown
- WordPress Pagination is not shown
- Show multiple next and previous posts
- How to add pagination to category templates
- Make posts_per_page value the same on all pages
- Page not found yet the posts are listed?
- Add pagination to this following template
- Search URL redirect problem
- Adding pagination to a custom template that uses custom post types?
- Why are my paginated result links not working?
- Pagination don’t list all entries on Index.php
- WordPress default gallery pagination when in page (is_page)?
- How do I hide a Gutenberg block when paginating
- Blog Posts – Scroll to view more
- Understrap Custom Pagination
- Pass global variable from Page 1 to page 2 (Pagination)
- How Change URL in Pagination pagebreak no plugins wordpress?
- How to remove url from omission dots in WordPress pagination?
- Use of rewind_posts() cause pagination to break
- Pagination not working on archive.php
- Pagination not working in custom post type but perfectly in posts
- Custom pagination with URL parameters
- Pagination 301 redirecting page 1
- change pagination url
- Add pagination – syntax error when copy/pasting
- Problem with Paging 404
- Pagination not working past page 3 on archive page of category
- Using the_posts_pagination with offset adds extra empty page
- Pagination is not working in custom page template
- Creating a Back button on detail post page to go back to blog page with same query strings and page id
- get_posts custom paging
- page/2 not working in wordpress it showing 404 page erorr
- How to implement pagination eg. newer – 3 – 4 – 5 – 6 – 7 – older
- Extra pagination pages being wrongly generated
- 404 Error on pagination with WP Query
- What is wrong with my code ? pagination does not show up
- Pagination re-direct to main page [duplicate]
- Paginating custom posts in categories yields a 404 error
- pagination custom post type on CP page
- Pagination for custom post type not working [duplicate]
- Pagination with wp_pagenavi not working on custom page
- how to apply Pagination on post
- Add Pagination in custom loop
- Custom Post Type Pagination For Genesis Child Theme [closed]
- Loading post like facebook on scrool to bottom [duplicate]
- Modifying previous_posts link to use AJAX
- How to remove post duplicate when using query_posts(‘offset=1’)
- paginate_links with select option
- Stop pagination when static homepage is set
- Is ‘pm’ used by core?