Make WordPress Core

Opened 6 years ago

Last modified 3 days ago

#9911 assigned enhancement

Add new filter to control content splitting into multiple pages

Reported by: sirzooro Owned by: chriscct7
Milestone: 4.4 Priority: normal
Severity: normal Version: 2.7.1
Component: Posts, Post Types Keywords: has-patch needs-testing dev-feedback
Focuses: template Cc:


Currently the only way to create multi-page post is to use <!--nextpage--> tag. I suggest to add new filter which will allow plugins to control this functionality. In attached files you can find path which adds such filter, and example plugin (it converts each paragraph to separate page).

Attachments (4)

query.php.diff (854 bytes) - added by sirzooro 6 years ago.
path for wp-includes/query.php
paginator.php (1.3 KB) - added by sirzooro 6 years ago.
example plugin
query.php.2.diff (858 bytes) - added by sirzooro 4 years ago.
Patch refreshed for WP 3.3
9911.patch (1.4 KB) - added by chriscct7 4 days ago.

Download all attachments as: .zip

Change History (16)

@sirzooro6 years ago

path for wp-includes/query.php

@sirzooro6 years ago

example plugin

comment:1 @sirzooro6 years ago

  • Keywords has-patch needs-testing added

comment:2 @Denis-de-Bernardy6 years ago

  • Component changed from General to Template

comment:3 @Denis-de-Bernardy6 years ago

  • Keywords commit added; needs-testing removed

patch is harmless

comment:4 @Denis-de-Bernardy6 years ago

  • Keywords needs-testing added; commit removed

punting per IRC discussion

comment:5 @Denis-de-Bernardy6 years ago

  • Milestone changed from 2.8 to 2.9

comment:6 @ryan6 years ago

  • Milestone changed from 2.9 to Future Release

@sirzooro4 years ago

Patch refreshed for WP 3.3

comment:7 @sirzooro4 years ago

I have refreshed patch for WP3.3. Could you commit it now?

comment:8 @sirzooro4 years ago

  • Keywords dev-feedback added

Any chance to get it commited in near future? Maybe not 3.3, but 3.4?

comment:9 @nacin20 months ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added

@chriscct74 days ago

comment:10 @chriscct74 days ago

  • Owner set to chriscct7
  • Status changed from new to assigned

comment:11 @chriscct74 days ago

  • Milestone changed from Future Release to 4.4

comment:12 @slackbot3 days ago

This ticket was mentioned in Slack in #core by chriscct7. View the logs.

Note: See TracTickets for help on using tickets.