WordPress.org

Ready to get started?Download WordPress

Forums

RPS Include Content
[resolved] wpautop option? (3 posts)

  1. MaxMatthew
    Member
    Posted 6 months ago #

    Of all the included content plugins, I've used, this one is by far the best and easiest to use. However, I had to modify the plugin so that included pages would display with line returns as they appear on the original page by adding wpautop to $the_output.

    private function output_msg( $content, $classes = '', $header = '' ) {
    		$the_output = '<div class="' . esc_attr( $classes ) . '">' . $header . '<div class="rps-include-content">';
    		$the_output .= wpautop ($content); /* 12/27/13 wpautop added by developer mf */
    		$the_output .= '</div></div>';
    		return $the_output;
    	}

    I would like to request that one could turn this off or on by using shortcode calls, with the default being "on".

    Thanks again for a very robust plugin that I use in almost every project I work on.

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

  2. redpixelstudios
    Member
    Plugin Author

    Posted 6 months ago #

    Glad to hear RPS Include Content is working out for you. The capability you need might already be present in the plugin, though you would need to test it to make certain. The filter attribute defines if the_content filter should be applied to the included post. To apply filters, including wpautop, you would need to form the shortcode like so:

    [rps-include post="500" filter="true"]

    Let us know if that works for you or if another approach is needed. Thanks in advance.

  3. redpixelstudios
    Member
    Plugin Author

    Posted 4 months ago #

    We are closing this topic since it has been sitting around a while. Please feel free to reopen if you need further assistance.

Reply

You must log in to post.

About this Plugin

About this Topic