vietartisans / lister
This package is abandoned and no longer maintained.
No replacement package was suggested.
List module
1.4.6
2017-04-10 02:02 UTC
Requires
- php: >5.4
- vietartisans/templater: ^1.0
Requires (Dev)
- phpunit/phpunit: 5.5.*
README
Simple List Data
Installation
composer require vietartisans/lister
Usage
Initialize
Initialize listing by creating an instance of class Listing
.
use VA\Lister; $list = new Lister();
Listing Options
Option | Default | Description | Pattern |
---|---|---|---|
post_type | post | Specify type of post | _ |
per_page | 6 | Number of posts per page | _ |
cat | null | List of categories | _ |
tag | null | List of tags | _ |
taxonomy | null | List of taxonomies and its term | tax1(term_id1:term_id2...),tax2(term2_id1,term2_id2...) |
status | publish | State of posts which matched to condition | publish,draft,pending... |
orderby | '' | Fields for order | _ |
paged | no | Enable paging or not | _ |
filter | no | Enable/Disable filter feature | _ |
Changelog
1.4.6
- Add option for WPML filter
1.4.5
- Add exclude post option
1.4.4
- Change
minimum-stability
tostable
1.4.3
- Change default
paged
option value tono
1.4.2
- rename
Listing
class name toLister
class name
1.4.1
- remove
<<<HEAD
mark inLister.php
1.4.0
- Integrate filter feature
1.3.0
1.2.0
1.1.0
- Get post based on multiple post status
1.0.1
- Fixed wrong path to template file
1.0.0
- First release