Hestia
A WordPress plugin that introduces a number of shortcodes for listing related posts within a post hierarchy.
★ 0stars
106composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/ssnepenthe/hestia/archive/refs/heads/master.zipAlso on Packagist as ssnepenthe/hestia:
composer require ssnepenthe/hestiaFrom the readme
hestia
This WordPress plugin introduces a number of shortcodes for listing related posts based on post hierarchy.
Requirements
PHP 5.6 or greater and Composer.
Installation
Install using Composer:
Usage
Once the plugin has been activated you will have access to the following shortcodes:
ancestors
Lists all post ancestors of the current post.
Accepts the following attributes:
id: ID of the post for which you would like to display ancestors. Defaults to the return value of gettheID().
order: one of ASC or DESC. Sets the sort order of found posts. Defaults to ASC.
thumbnails: true or false. Whether or not to include featured images in post list. Defaults to false.
Example: [ancestors order="DESC" thumbnails="true"]
attachments
Lists all media that has been directly attached to the current post.
Accepts the following attributes:
id: ID of the post for which you would like to display attachments. Defaults to the return value of gettheID().
link: one of PAGE or FILE. Sets whether to link to the attachment page or the actual attachment file. Defaults to PAGE.
max: integer between 1 and 100. Sets the maximum number of attachments to display. Defaults to 20.
order: one of A