EDIT – Now that 4.4 is out, you should use the content_pagination
filter. See birgire’s answer below.
You can add formatting to raw post content by applying the content filters directly to $post->post_content
:
echo apply_filters( 'the_content', $post->post_content );
This will bypass pagination by not using the get_the_content
function, which is what the_content
uses internally to retrieve the current page’s content for multipage posts.
You can prevent wp_link_pages
from outputting anything by applying a filter to its output before the function is called and using the __return_empty_string
helper function:
add_filter( 'wp_link_pages', '__return_empty_string' );
Related Posts:
- How to add pagination in between post and comments?
- Stop WordPress Wrapping Images In A “P” Tag
- How to get ‘post_content’ without stripping tags?
- Change Posts per page count
- The next_posts_link() works only with original $wp_query
- Get content from one page and show it on another page
- Removing any and all inline styles from the_content()
- Allow variable amount of comments before pagination
- Skipping first 3 posts in wp query
- How to load paginated post pages via ajax
- Modify ‘Read more’ link adding a new class
- How to Group Posts by the First Letter or Number?
- Adding a div class or id inside the_content()
- How can I display 7 posts on the home page, but 9 posts on the subsequent pages?
- Custom Post Type Pagination Doesn’t Work in WordPress 3.4
- Automatically create pages in a post based on number of words
- Divide Post content into separate divs for every 500 characters (or any other character counts)
- Setting pagination for images attached to a post
- Pagination not working on Custom Page Template
- Show number of posts AND number on current page
- Post content being duplicated by the_content();
- Pagination for Pages and Posts
- Programmatically inserting page breaks
- I’m having some issues with previous_post_link() and next_post_link()
- How can I extract the URL of a link from a post?
- Different amount of posts on homepage than paged pages
- Content editor creating blank paragraphs in spaces and creating   in the_excerpt
- How to add custom content (text/image) at start of content (IN content ie the same line)
- JetPack Infinite Scroll not working on custom theme
- Pagination – Posting First Page Content
- Load posts into sidebar and paginate via ajax?
- Testing for post title in ‘if/else’ statement returns no content
- How can I get all posts data from within a paginated search result?
- When paginating a Page with the tag, how can the 2nd and subsequent page styles be customised?
- Display the Content of a Post with qTip2
- How to show video from specific category on sidebar?
- A way to detect which page a post is on
- custom post type grid with content in lightbox [closed]
- Converting multiple loops into one single loop with pagination
- pagination hook doesn’t work with search results
- how to know if the post has pagination () or not
- Unwanted Duplicate Posts Showing in Pagination Pages
- posts_nav_link() not displaying anything
- can’t use the page_test method to check pagination
- Is it possible to change the admin posts per page view?
- Lazy Load using WP_Query pagination
- Pagination on single post page?
- How to display different number of posts
- Should $found_posts be returned as string in ‘found_posts’ filter hook?
- Archive Page for Custom Post Type is not Working
- Getting content from a single *page* of a post
- Uppercase first sentence in every post
- How do I detect which page I’m on within a paginated post?
- Duplicating Table of Contents for Paginated Post
- Why content_arr[‘extended’] removes paragraph tags?
- Modify Image Source With The_Content Filter?
- Adding the_date inside tags around the_content
- 404 on paginated blog pages
- Blog post per page setting conflicting with custom WP_Query?
- Get the number of posts shown in the current page
- Blog page pagination is not working after using the offset argument
- Show the content that is after the excerpt using child theme
- Custom loop pagination links not working
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- Making a custom Pagination for multi page blog post
- pagination for single post by category
- 301 (static page instead latest posts)
- How to : pagination in 3 different custom loops on the same page
- Pagination with an array of post objects?
- get query() without post content?
- How safe is renovating $wp_query when doing WP_Query pagination in Page Template
- Start WP Pagination From Number 1 in URL
- How to show full post?
- Customizing Comments on Posts
- Use two different post_per_page limits with infinite scroll
- Filter only the text in the_content
- Start post pagination at 0 instead of 1
- How to check if single.php has already called the_post_thumbnail function
- using is_paged for hiding image on posts
- Why are my paginated posts always returning the same results?
- How to disable the_excerpt from one post
- Total number of posts in query (category/tag/author/search results/main page…)
- Why won’t pagination work?
- Only show featured image on first page of paginated posts
- Getting blog pagination to work on page set as front page
- Change the number of excerpts displayed in search results layout
- WordPress pagination and Post Navigation not working on home page
- Add div before the first paragraph the_content [closed]
- Custom Post Limit for homepage only without plugin?
- the_content() Not Grabbing All Content
- Pagination for normal (standard) posts on a page with a custom loop?
- Adding if statement into the_content()
- Pagination for posts inside a specific category
- Rest API Paginate until all posts are imported
- why my urdu text is not aligned properly when written in wordpress blog post?
- Blog Posts – Scroll to view more
- How do I display main query posts in random order using add_filter
- How to exclude native lazy loading from first image in post content?
- Pagination not give another posts
- Manipulated offset and pagination, can’t display last post anymore