• Resolved trytofinderror

    (@trytofinderror)


    Hi!

    I have 3 custom post types: cpt1, cpt2, cpt3.

    Is there way to display related posts of cpt1 on cpt2 posts and related posts of cpt3 only on cpt3 posts?

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

    (@trytofinderror)

    sorry
    the way is:
    yarpp_related(array("post_type" => array('post_type')), get_the_ID(), true);

    thx

    Plugin Support Michael Nelson

    (@mnelson4)

    👍 you got it! Of course I don’t know where that’s documented anymore. How did you find it?

    • This reply was modified 7 years ago by Michael Nelson. Reason: add tag
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom post type in function params’ is closed to new replies.