OxySites Related Posts showcases related posts on the current post or page. The element lets you query posts by one, several, or all of the following parameters:
To add a related posts element from the elements panel go to OxySites ➟ Related Posts.
The following will describe how to use the query control and how the query actually works in detail. The query allows to filter related posts by one, several, or all of the parameters:
In general, all parameters are AND-connected, for example, if Same Categories and Same Author are enabled at the same time, the query will return all related posts where both, the same categories AND the same author are true.
The option Same Categories will query all posts related to the original post, where at least one of the categories of the original post is also present in the queried post.
Same Author queries all posts where the author is the same as the author of the original post.
The option Same Custom Taxonomy will query all posts related to the original post, where at least one of the custom taxonomies of the original post is also present in the queried post.
You may query by more than one custom taxonomy slug, separated by , (comma).
The option ACF Fields will query all posts related to the original post, where at least one of the acf fields of the original post is also present in the queried post.
You may query by more than one acf field, separated by , (comma).
You may enter field group and relationship fields as well.
Formatting: Single or relationship field [field-name], Grouped field [group-field-name_field-name].
The element uses CSS Flexible Box (Flexbox) for its layouts. The individual posts of the element are contained in a flexbox row, which means that the resulting grid can be controlled by adjusting the size of the individual post.
To access the post layout in the builder control, navigate to the Related Posts element and from there to Related Post ➟ Post Layout.
An individual post includes the following parts, which can be enabled or disabled individually:
The individual parts are laid out using Flexbox and their order can be adjusted to ones needs. The parts can be aligned horizontally all at once under Post Layout, or by adjusting the alignment in the part’s dedicated control section.