Contents
The Related Posts feature scans all of your post content, analyzes it, and uses the results to display additional posts your visitors might be interested in reading after they’re finished with the current post.
Go to the My Sites → Switch Sites and select your site (if you have more than one). Click Tools → Marketing. On the Traffic tab that appears, scroll down to the “Related Posts” settings. Select either “Show related content after posts” or “Hide Related” content after posts” to turn the feature on or off.
How do I turn off related posts on Facebook?
Login to Facebook on your personal account that’s an admin of the Page. From the left sidebar of your Page, click Settings. From General, click Similar Page Suggestions. Click to uncheck the box next to Include [Page name] when recommending similar Pages people might like on a Page timeline.
To affect the query and show related posts with Elementor, add lwp_related_posts to the Query > Query ID setting. The next step will put some meaning behind that handle.
It sets Elementor’s query to grab those posts. Yes, there are two queries, but unless we want to dig deep into how the logic of the sidekick plugin works, this is fine. Usually, people show just a handful of related posts anyway, so it’s not that taxing to use the post__in query parameter.
What is the function of query _ posts in WordPress?
The ‘parse_query’ and the ‘pre_get_posts’ filters are also available to modify the internal $query object that is used to generate the SQL to query the database. For more in-depth discussion of how WordPress generates and handles its queries, review these articles: Query Overview and Custom Queries
Yes, there are two queries, but unless we want to dig deep into how the logic of the sidekick plugin works, this is fine. Usually, people show just a handful of related posts anyway, so it’s not that taxing to use the post__in query parameter. For our use case, this is all it took to show related posts with Elementor.