WordPress.org

Ready to get started?Download WordPress

Forums

RPS Include Content
[resolved] 1.0.9 includes content but also plugins and widgets (6 posts)

  1. iMil
    Member
    Posted 1 year ago #

    Hi,

    I've just upgraded RPS Include Content from 1.0.7 to 1.0.9 but I had to revert it to 1.0.7. With 1.0.9, when I include a page, all the widgets and plugins are also included and shown (i.e. gd stars, addthis, google ads and such), not only included page's content.

    Thanks for your work !

    http://wordpress.org/extend/plugins/rps-include-content/

  2. redpixelstudios
    Member
    Plugin Author

    Posted 1 year ago #

    You are quite welcome.

    We looked at the differences between version 1.0.7 and 1.0.9 to see what could be causing the issue. We were unable to locate any significant change in the method used to retrieve the content that would cause the issue that you described.

    As you are likely aware, any shortcodes within the content are executed before it is included on another page, but the scope of what is retrieved is limited to $post->post_content or $post->post_excerpt, depending on the shortcode "content" argument.

    We did replace the wpautop function that was being run on the content with "the_content" filter, but that does not seem to be the culprit.

    If it is not too much trouble, could you disable all plugins except RPS Include Content 1.0.9, update the page containing the rps-include shortcode and see if the problem persists? If it works you would just need to activate plugins until you find the conflict. Let us know.

  3. redpixelstudios
    Member
    Plugin Author

    Posted 1 year ago #

    Have you had a chance to look further into this issue? Please provide an update at your convenience.

  4. iMil
    Member
    Posted 1 year ago #

    Hi,

    sorry I haven't been very helpful these days, for you to know, I "fixed" (ugly fix) the issue by replacing:

    $the_content = $the_title . do_shortcode( apply_filters( 'the_co
    ntent', $the_article ) );

    with

    $the_content = $the_title . do_shortcode( $the_article );

    I know that sucks a lot...

    The main problem is that whenever a plugin is activated, it will be re-included as apply_filter() is called before inclusion.

  5. redpixelstudios
    Member
    Plugin Author

    Posted 1 year ago #

    No worries at all. We will look into the issue further. It is possible that applying 'the_content' filter instead of simply passing the content along is causing the problem you are seeing. Thank you for following up with us.

  6. redpixelstudios
    Member
    Plugin Author

    Posted 1 year ago #

    We believe that version 1.0.10 should resolve the issue. It would seem that removing the_content filter is the approach that needs to be followed because of the way in which shortcodes are processed. Thanks for your feedback. Though we have marked this post as resolved let us know if you run into additional problems.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.