• Resolved linkin85

    (@linkin85)


    When using post data shortcode, and selecting: Filtered post content, it shows nothing.
    however when I use post content, it works perfectly.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Vladimir

    (@gn_themes)

    Hi @linkin85,

    this field is intended to be empty. See the detailed explanation.

    thanks for the reply. I thought it was for inserting post data that has shortcodes, which have been executed.

    any idea how I can achieve that?

    Plugin Author Vladimir

    (@gn_themes)

    Add the following code to the end of the functions.php file of your theme:

    if ( ! function_exists( 'su_post_data_filter' ) ) {
    
    	function su_post_data_filter( $value ) {
    		return do_shortcode( $value );
    	}
    
    }

    Then, use the following shortcode:

    [su_post field="post_content" post_id="YOUR_POST_ID_HERE" filter="su_post_data_filter"]
    

    Much appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Possible post data bug’ is closed to new replies.