LemonPost
All custom post types will use this class as a base class unless you specifically create a new class that does not extend this class.
This class is used to extend the Timber Post class to add supporting methods for your post types.
Overview
This class extends Timber\Post
Methods
| Name | Return Type | Summary/Returns |
|---|---|---|
| get_archive_page() | array or false | Method to get the archive page for the post type. Returns: The archive link. |
| get_excerpt() | string | Custom excerpt. Returns: Returns the excerpt. |
| get_other_items() | \Timber\PostCollectionInterface or array | Method to get other post items. Returns: The other items. |
Class Methods
get_archive_page()
Method to get the archive page for the post type.
Returns: array|false The archive link.