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

  1. MaxMatthew
    Posted 2 years 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.


  2. redpixelstudios
    Plugin Author

    Posted 2 years 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
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • RPS Include Content
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic