Download the PHP package sectsect/wp-split-single-page without Composer
On this page you can find all versions of the php package sectsect/wp-split-single-page. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package wp-split-single-page
WP Split Single Page
- For Each Array of custom field -
Supply some functions and Pagination for split single page for each array of custom field without <!--nextpage-->
on your template.
Installation
1. Clone this Repo into your wp-content/plugins
directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
That's it:ok_hand:
Notes
- Supports
is_preview()
Page. See Usage Example. - Supports Wordpress Plugin Public Post Preview
- Supports Wordpress Plugin CF Preview Fix for Cloudfront :memo: You need to manually add the following two parameters to the URL output by CF Preview Fix.
functions
Function | Description |
---|---|
is_single_paged($num) |
Detect the specific splitted page number. ( Return: boolean ) |
single_paginate($args) |
Get the Pagination. ( Based on paginate_links() Codex ) |
prev_single_paged_link($pagecount, $paged, $label, $type) |
Get the Previous Split Single Page link |
next_single_paged_link($pagecount, $paged, $label, $type) |
Get the Next Split Single Page link |
add_rel_prev_next_paginated_posts($pagecount) |
Get rel="prev" and rel="next" linksSee Indicating paginated content to Google |
single_paginate($args)
Default Arguments
TIP: 'base'
and 'format'
Silence is golden 👍
next_single_paged_link($pagecount, $paged, $label, $type)
Parameters
-
pagecount
(integer)
The total number of pages. -
paged
(integer)
The current page number. -
label
(string)
(Optional) Link text to display. Default:'Next'
-
type
(string)
(Optional) Controls format of the returned value. Possible values are:- 'plain' -
<a href="#" rel="next">Next</a>
- 'list' -
<li class="next"><a href="#" rel="next">Next</a></li>
Default:
'plain'
- 'plain' -
add_rel_prev_next_paginated_posts($pagecount)
Parameters
- pagecount
(integer)
The total number of pages.
Usage Example
single.php
NOTE: Split the page by array (w/ Custom Field Suite Plugin).
Change log
- 1.4.0 - Specify canonical URL in canonical meta tag
- 1.3.0 - Add New function
add_rel_prev_next_paginated_posts()
- 1.2.8 - Rename a function to
is_perm_trailingslash()
- 1.2.7 - Improve some codes for comparing same types
- 1.2.6 - :bug: Fix bug in function
is_single_paged()
- 1.2.5 - :bug: Fix bug for navigation links when the permalink setting has no Trailing Slash
- 1.2.4 - :bug: Fix PHP Notice for Undefined variable
- 1.2.3 - Add PHP Unit Testing w/phpunit via TravisCI
- 1.2.2 - Add support that permalink setting has no Trailing Slash. And Support Plugin CF Preview Fix for Cloudfront (w/ conditions).
- 1.2.1 - Add composer.json
- 1.2.0 - Add Support Wordpress Plugin Public Post Preview
- 1.1.0 - Add New functions
prev_single_paged_link()
andnext_single_paged_link()
-
1.0.0 - :tada: Initial Release
See CHANGELOG file.
License
See LICENSE file.
All versions of wp-split-single-page with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.3
The package sectsect/wp-split-single-page contains the following files
Loading the files please wait ....