=== Related Posts by Taxonomy === Contributors: keesiemeijer Tags: posts,related,related posts,taxonomy,thumbnails Requires at least: 5.9 Tested up to: 6.9 Stable tag: 2.7.8 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Display a list of related posts on your site based on the most terms in common. Supports thumbnails, shortcodes, a widget and more. == Description == Quickly increase your readers' engagement by adding related posts in the sidebar or after post content with a widget or shortcode. Posts with the **most terms in common** will display at the top! This plugin is capable of finding related posts in multiple **taxonomies** and **post types**. Include or exclude terms from the search for related posts. Change the look and feel by using your own templates in a (child) theme. [plugin documentation](http://keesiemeijer.wordpress.com/related-posts-by-taxonomy/) Plugin features: * Widget and Shortcode. * Display related posts as **post thumbnails**, links, excerpts or full posts. * **Small Footprint**. Doesn't slow down your site! * Automatic display of related posts after the post content. * **Exclude** or **include** terms and posts. * Search for related posts in single or multiple **taxonomies** and **post types**. * Limit the search for related posts by date, number or post meta. * Use your own **HTML templates** for display of the related posts. * Extensive [plugin documentation](http://keesiemeijer.wordpress.com/related-posts-by-taxonomy/). * Follows WordPress coding standards and plugin best practices. * Highly Adjustable! For the following features you need to be somewhat familiar with WordPress [hooks](https://developer.wordpress.org/plugins/hooks/). The [plugin documentation](http://keesiemeijer.wordpress.com/related-posts-by-taxonomy/) has many examples to help you along. Extended features: * Use a persistent cache for the related posts query. (opt-in feature) * Use the **WordPress REST API** to get related posts. (opt-in feature) * Load related posts after the whole page has loaded (with Ajax). (opt-in feature) * Use **plugin functions** in your theme templates to display related posts yourself. * Use Filters to **change the default behavior** of the plugin. Follow this plugin on [GitHub](https://github.com/keesiemeijer/related-posts-by-taxonomy). Search the [code reference](https://keesiemeijer.github.io/related-posts-by-taxonomy) See the [FAQ](http://wordpress.org/extend/plugins/related-posts-by-taxonomy/faq/) to have related posts automatically display after the post content without using the shortcode or widget. Default usage for the shortcode is:
[related_posts_by_tax]
Attributes for the shortcode are:
* `post_id`
* `taxonomies`
* `post_types`
* `posts_per_page`
* `order`
* `orderby`
* `before_shortcode`
* `after_shortcode`
* `title`
* `show_date`
* `before_title`
* `after_title`
* `include_terms`
* `include_parents`
* `include_children`
* `exclude_terms`
* `exclude_posts`
* `format`
* `gallery_format`
* `image_size`
* `columns`
* `caption`
* `link_caption`
* `limit_posts`
* `limit_month`
* `meta_key`
* `meta_value`
* `meta_compare`
* `meta_type`
* `public_only`
* `include_self`
* `post_class`
Example to show 10 related posts instead of the default 5.
[related_posts_by_tax posts_per_page="10"]
See the [documentation](https://keesiemeijer.wordpress.com/related-posts-by-taxonomy/#shortcode) for more information about these attributes.
= Translations =
* Dutch
* French (by [Annie Stasse](http://www.artisanathai.fr))
* Spanish (by [Ludobooks – Cuentos personalizados](http://www.ludobooks.com))
* Catalan (by [Ludobooks – Cuentos personalizados](http://www.ludobooks.com))
* Polish (by [koda0601](http://rekolekcje.net.pl))
== Installation ==
* Unzip the related-posts-by-taxonomy.zip folder.
* Upload the related-posts-by-taxonomy folder to your /wp-content/plugins directory.
* Activate *Related Posts by Taxonomy*.
* That's it, now you are ready to use the widget and shortcode
== Frequently Asked Questions ==
For more information about the plugin see the [plugin documentation](http://keesiemeijer.wordpress.com/related-posts-by-taxonomy/).
To customize this plugin see the [plugin recipes page](https://keesiemeijer.wordpress.com/related-posts-by-taxonomy/recipes/).
= Can I change the layout for the related posts? =
Yes. Review [this section](https://keesiemeijer.wordpress.com/related-posts-by-taxonomy/recipes/#styling) of the documentation to style the related posts yourself.
= How can I automatically add related posts after the post content? =
Review [Adding Related Posts After the Post Content](http://keesiemeijer.wordpress.com/related-posts-by-taxonomy/#after-content).
= Can I include or exclude posts or terms with the widget or shortcode =
Yes. For the widget see [this filter](http://keesiemeijer.wordpress.com/related-posts-by-taxonomy/filters/#related_posts_by_taxonomy_widget_args) and for the shortcode see the attributes [include_terms](https://keesiemeijer.wordpress.com/related-posts-by-taxonomy/#include-terms), [exclude-terms](https://keesiemeijer.wordpress.com/related-posts-by-taxonomy/#exclude-terms) and [exclude_posts](https://keesiemeijer.wordpress.com/related-posts-by-taxonomy/#exclude-posts).
= Can I set my own defaults for the shortcode? =
Yes. Review [Setting your own defaults for the shortcode](https://keesiemeijer.wordpress.com/related-posts-by-taxonomy/recipes/#shortcode_defaults)
= The widget only lets you choose "all taxonomies" or a single taxonomy. Can I make it use multiple specific taxonomies? =
Yes. See [this filter](http://keesiemeijer.wordpress.com/related-posts-by-taxonomy/filters/#related_posts_by_taxonomy_widget_args) on how to do that.
= Is this plugin GDPR compliant? =
* This plugin doesn’t process, share, send or retain any user data.
* This plugin doesn't track (user) data for analytics (or for any other reason).
* This plugin doesn't save or read cookies.
* This plugin doesn't use 3rd party libraries.
Read [this article](https://developer.wordpress.org/plugins/wordpress-org/compliance-disclaimers/) why plugin authors cannot guarantee 100% compliance.
Please contact a GDPR consultant or law firm with this information to assess if this plugin is compliant.
== Screenshots ==
1. The Widget
2. Twenty Fifteen screenshot. Related posts in the sidebar and after post content
3. Twenty Twelve screenshot. Post thumbnails (after post content) and the widget
4. Twenty Thirteen screenshot. Post thumbnails (after post content) and the widget
== Changelog ==
= 2.7.8 =
* Bug Fixes
* Fix gallery