• Resolved MaxMatthew

    (@maxmatthew)


    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.

    https://www.ads-software.com/plugins/rps-include-content/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author redpixelstudios

    (@redpixelstudios)

    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.

    Plugin Author redpixelstudios

    (@redpixelstudios)

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wpautop option?’ is closed to new replies.