• Resolved aelius32

    (@aelius32)


    ep_find_related was removed on the version 3.0?

    [error] 9956#9956: *19130762 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught Error: Call to undefined function ep_find_related()

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter aelius32

    (@aelius32)

    I have found it

    Instead of:
    ep_find_related( get_the_ID(), 4 );

    I must use:
    ElasticPress\Features::factory()->get_registered_feature( ‘related_posts’ )->find_related( $post_id, $return = 4 );

    Plugin Contributor Taylor Lovett

    (@tlovett1)

    This was re-added in 3.0.1 but deprecated. You should use the method you posted above.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ep_find_related was removed?’ is closed to new replies.