WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Conflict with Ninja Forms

[Resolved] Conflict with Ninja Forms

Viewing 2 replies - 1 through 2 (of 2 total)
  • kitchin
    Participant

    @kitchin

    Fixed in Testimonial Rotator 3.4! Thanks!

    For those interested, Testimonial Rotator no longer applies “the_content” filters. Instead it calls “do_shortcodes” which comes down to a subset of “the_content” filters.
    was:
    apply_filters( 'the_content', get_the_content()
    now:
    do_shortcode(nl2br(get_the_content(' ')).

    This is great, no more problems with Ninja Forms. I still wonder what is the best way for plugins like that to use “the_content” for what is really serving special pages. I’ve done it myself in code. Maybe it’s an OK way to do it, rather than getting into the query before the page is loaded. The technique is to add a “the_content” filter and look at post->ID to see if you want to serve up your special content. Seems simple until you notice other apply_filter’s of “the_content”. I think you’re pretty safe with WP core itself.

    Plugin Author Hal Gatewood
    Participant

    @halgatewood

    Yeah, I think plugin authors who attach into that filter need to do a good amount of filtering with is_single, is_archive, etc.

    Glad this fixed it for you. I was having more and more complaints about this one and just had to make the switch. Not sure when it will cause problems for others, but I think this is the best solution for now.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Conflict with Ninja Forms’ is closed to new replies.