Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Related posts advice uses deprecated function #445

Open
rmccue opened this issue Dec 5, 2022 · 0 comments
Open

Related posts advice uses deprecated function #445

rmccue opened this issue Dec 5, 2022 · 0 comments
Labels
bug Existing functionality isn't behaving as expected developer advocacy Developer Advocacy related tasks

Comments

@rmccue
Copy link
Member

rmccue commented Dec 5, 2022

The advice under the "related posts" configuration at https://docs.altis-dxp.com/search/configuration/#related-posts is out-of-date; it recommends ep_find_related() which is deprecated. https://10up.github.io/ElasticPress/tutorial-features.html recommends using\ElasticPress\Features::factory()->get_registered_feature( 'related_posts' )->find_related( $post_id, $return = 5 ) directly now.

As an aside, it's also in an obscure place; I had to search to find the information on related posts at all. I'd suggest breaking it to a new page under "Querying"

@rmccue rmccue added the bug Existing functionality isn't behaving as expected label Dec 5, 2022
@missjwo missjwo added the developer advocacy Developer Advocacy related tasks label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing functionality isn't behaving as expected developer advocacy Developer Advocacy related tasks
Projects
None yet
Development

No branches or pull requests

2 participants