Skip to content
Add reviewers to posts. Includes shortcodes and helper functions to use with genesis_post_info.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets
includes
vendor
README.md
composer.json
composer.lock
mai-post-reviewers.php

README.md

Mai Post Reviewers

Requires Genesis. Intended to use with Mai Theme but will mostly work without it.

Add reviewers to posts. Includes shortcodes and helper functions to use with genesis_post_info.

Registers a new taxonomy called "Reviewers" where you can choose one or more reviewers for a given post. Each reviewer has an archive page showing posts they've reviewed.

Display

Setup your reviewers via Dashboard > Posts > Reviewers. Make sure to add a reviewer image.

Add/edit any post and check off any reviewers for that post and they will automatically display on the post.

Default Layout

alt text

Default Layout with multiple reviewers

alt text

Custom Layout and styles (via genesis_post_info filter)

alt text

Filters

/**
 * Filter to disable auto display of post reviewers.
 *
 * @param   bool  Wheter or not to display post reviewers if a post has them.
 *
 * @return  bool
 */
$display = apply_filters( 'maipr_display_post_reviewers', $display );
/**
 * Filter to change the default 'Reviewed by:' text.
 *
 * @param   string  The text.
 *
 * @return  string  The modified text.
 */
$text = apply_filters( 'maipr_post_reviewer_text', __( 'Reviewed by:', 'mai-post-reviewers' ) );
/**
 * Filter the image size to use for post reviewer.
 *
 * @param   string  The image size.
 *
 * @return  string  The new image size.
 */
$size = apply_filters( 'maipr_post_reviewer_image_size', 'tiny' );

Shortcodes

[post_reviewer_images]

Display all post reviewer images.

[post_reviewer_text]

Display the "Reviewed by:" text.

[post_reviewer_names]

Display all post reviewers names.

You can’t perform that action at this time.