• Resolved Anton

    (@amaksimov)


    Hello,

    I use a Strong Testimonials plugin on the site. YARPP shows me testimonials in a Relates Posts block despite I use ‘post_type’ => array(‘post’,’page’) in the code.

    Strong Testimonials uses ‘wpm-testimonial’ as the post_type. So I don’t have to see the testimonials, but they are.

    How can I hide testimonials from my Relates Posts block?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Michael Nelson

    (@mnelson4)

    Hi @amaksimov, sorry for the late reply, this got burried in other messages.

    Can you share the code you’re using to add related posts? Or a screenshot of your YARPP settings? I’m unclear which method you’re using.

    From my testing, YARPP is able to exclude testimonials from the related content it finds. So what you want is possible but something’s not quite right…

    Thread Starter Anton

    (@amaksimov)

    I am using the code below for this:

    
    if (!in_category( array (9, 97) )) { 
      related_posts(array('post_type' => array('post'),'limit' => 5)); 
    }
    

    But the Strong Testimonials entries are not ‘post’. They are ‘wpm-testimonial’. And I see testimonials in the Related Posts block anyway.

    • This reply was modified 3 years, 4 months ago by Anton.
    • This reply was modified 3 years, 4 months ago by Anton.
    Plugin Support Michael Nelson

    (@mnelson4)

    Thanks for sharing the code snippet.

    I think the problem is that you’re using the deprecated function related_posts. Please try again using yarpp_related. Does that help? (Sorry I haven’t found time to debug further.)

    Thread Starter Anton

    (@amaksimov)

    Michael, all is fine now. Thanks for your help and for your great work!!!

    Plugin Support Michael Nelson

    (@mnelson4)

    ??! And thank you for your patience

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Strong Testimonials in YARPP’ is closed to new replies.