Posted on

Pinning posts

Sometimes you want to get a specific post as the first result for a certain search, but Relevanssi doesn’t return the right post as the first result by itself for some reason. Relevanssi Premium has a tool for these situations: pinning.

Pinning lets you specify keywords for each post and whenever that keyword is used in the search, the post will appear as the first result. If multiple posts are pinned for the same keyword, they will appear in their natural order. It’s also possible to pin a post for all searches it appears in, ie. whenever the post would be included in the search results, it comes up first.

How to use pinning

Pinning is done from the post edit page. Relevanssi Premium adds Relevanssi controls to all post types that are indexed. In the block editor the Relevanssi controls are somewhat hidden by default, but can be found from the “three dots” menu on the top right:

If you want easier access to the Relevanssi controls, you can add them to the toolbar from the star button:

The pinning settings can be found under “Pinning”. The “Pin this post for all searches it appears in” checkbox pins the post for all keywords, it’s practically equivalent to adding all words in the post to the keyword field.

In the classic editor the Relevanssi Premium controls are generally always visible, but if they’re not, you can enable them from the “Display options” settings on the post edit page.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.