Edit this page on Github

Spress >= 2.0

Generators are used for generating new items of content. Generators can be used to create a tag or category index page dynamically. A good example of that is PaginationGenerator whose responsibility is to generate multiple pages around a set of items like posts or any other collection. A Generator must implement GeneratorInterface.

Predefined generators

PaginationGenerator and TaxonomyGenerator are the predefined generators. TaxonomyGenerator lets you group some items around a term. This generator uses PaginatorGenerator for generating multiple pages for each term.

For a complete example of using generators take a look at how predefined generators work.