By default AriRelated adds the list after the content of every post. Use one of the methods below to place it somewhere else. A post that has the block or the shortcode in its content does not get the automatic list as well, so you never see two lists.
Move the automatic list before the content
- Go to Settings→AriRelated→Display.
- Under Where, set Position to Before the content.
- Click Save changes.
To show the automatic list on pages or other post types as well, tick them under Show on.
Use the Related Posts block
- Edit the post, or a template in the Site Editor if you use a block theme.
- Add the block Related Posts (AriRelated). Searching for "related" finds it.
- In the block sidebar, under Content, keep Use the heading from settings on, or turn it off and type your own Heading. Leave it empty for no heading.
- Set Number of posts (0 = from settings).
- Under Layout, pick From settings, Cards, List with thumbnails or Titles only, set Columns (0 = from settings), and turn Show images, Show category, Show excerpt and Show date on or off.
- Save the post or template.
When the block is in the template of a block theme, the automatic list is not added as well. The four Show toggles belong to the block and do not follow the Display settings.
Use the shortcode
Type the shortcode where the list should appear, for example in a Shortcode block:
[arirelated count="3" layout="list" heading="More reading"]
Leave out any option to use the value from the settings. Use heading="" for no heading. All options are listed in the developer reference.
Use the sidebar widget
- Go to Appearance→Widgets (in themes that support classic widgets).
- Add AriRelated: Related posts to a sidebar.
- Set Title:, Number of posts: (1–12) and Layout:, and tick Show images or Show dates.
- Click Save.
The widget only shows on single views (posts, pages and other post types), in one column, without the category label.
Use a theme template
In a (child) theme template, inside the loop, add:
<?php arirelated(); ?>
The automatic list is not switched off by this. Untick Add related posts to posts automatically under Settings→AriRelated→Display if you only want the template version.
Still stuck?
Our helpdesk answers on working days, Norwegian time. Include your WordPress version, PHP version and the page address.