WordPress.org

Make WordPress Core

Opened 5 years ago

Last modified 5 months ago

#9911 new enhancement

Add new filter to control content splitting into multiple pages

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

Description

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 (3)

query.php.diff (854 bytes) - added by sirzooro 5 years ago.
path for wp-includes/query.php
paginator.php (1.3 KB) - added by sirzooro 5 years ago.
example plugin
query.php.2.diff (858 bytes) - added by sirzooro 3 years ago.
Patch refreshed for WP 3.3

Download all attachments as: .zip

Change History (12)

sirzooro5 years ago

path for wp-includes/query.php

sirzooro5 years ago

example plugin

comment:1 sirzooro5 years ago

  • Keywords has-patch needs-testing added

comment:2 Denis-de-Bernardy5 years ago

  • Component changed from General to Template

comment:3 Denis-de-Bernardy5 years ago

  • Keywords commit added; needs-testing removed

patch is harmless

comment:4 Denis-de-Bernardy5 years ago

  • Keywords needs-testing added; commit removed

punting per IRC discussion

comment:5 Denis-de-Bernardy5 years ago

  • Milestone changed from 2.8 to 2.9

comment:6 ryan5 years ago

  • Milestone changed from 2.9 to Future Release

sirzooro3 years ago

Patch refreshed for WP 3.3

comment:7 sirzooro3 years ago

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

comment:8 sirzooro3 years ago

  • Keywords dev-feedback added

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

comment:9 nacin5 months ago

  • Component changed from Template to Posts, Post Types
  • Focuses template added
Note: See TracTickets for help on using tickets.