• Hi –

    Just updated to WooCommerce to 2.5.2 and there seems to be a conflict that causes the_content() function to fail silently. As in, no output. echo get_the_content() works fine and $post->post_content shows the content.

    I think the the filter being added to the_content() filter is having issues.

    [00000000486362800000000144060498remove_empty_elements] => Array
                    (
                        [function] => Array
                            (
                                [0] => MV_Shortcodes_Pro_shortcodes Object
                                    (
                                        [c] => 0
                                        [input_size] => 30
                                        [input_width] => 97%
                                        [unset] => Array
                                            (
                                                [0] => post_name
                                                [1] => attributes-header
                                                [2] => hiddens
                                                [3] => attributes-list
                                                [4] => add-new-attributed
                                            )
                                        [post_type_id] => shortcodepro
                                        [attribute_fields] => Array
                                            (
                                                [0] => order
                                                [1] => slug
                                                [2] => label
                                                [3] => desc
                                                [4] => type
                                                [5] => value
                                                [6] => options
                                            )
                                    )
                                [1] => remove_empty_elements
                            )
                        [accepted_args] => 1
                    )

    This might not be an issue with your code, so much as just a conflict with Woo, and how they create their shortcode objects.

    Anyways, have you seen this before, have a solution, ideas?

    Thanks,

    https://www.ads-software.com/plugins/shortcodes-pro/

  • The topic ‘Conflict with WooCommerce (or WooCommerce plugin) causing the_content() to fail’ is closed to new replies.