• Hi,

    I think there is a serious bug on JSON return when using REST-API

    https://foo.com/wp-json/wp/v2/posts
    https://foo.com/wp-json/wp/v2/page

    After activate WooCommerce Plugin and try this

    <script type=”text/javascript”>
    jQuery(document).ready(function($) { $(‘.ptp-plan’).matchHeight(false); $(‘.ptp-cta’).matchHeight(false); $(‘.ptp-price’).matchHeight(false); $(‘.ptp-button’).matchHeight(false); $(‘.ptp-bullet-item’).each(function( index ){ $(‘.ptp-row-id-‘+index).matchHeight(false); }); }); </script> <script type=”text/javascript”> jQuery(document).ready(function($) { $(‘.ptp-plan’).matchHeight(false); $(‘.ptp-cta’).matchHeight(false); $(‘.ptp-price’).matchHeight(false); $(‘.ptp-button’).matchHeight(false); $(‘.ptp-bullet-item’).each(function( index ){ $(‘.ptp-row-id-‘+index).matchHeight(false); }); }); </script> <script type=”text/javascript”> jQuery(document).ready(function($) { $(‘.ptp-plan’).matchHeight(false); $(‘.ptp-cta’).matchHeight(false); $(‘.ptp-price’).matchHeight(false); $(‘.ptp-button’).matchHeight(false); $(‘.ptp-bullet-item’).each(function( index ){ $(‘.ptp-row-id-‘+index).matchHeight(false); }); }); </script> <script type=”text/javascript”> jQuery(document).ready(function($) { $(‘.ptp-plan’).matchHeight(false); $(‘.ptp-cta’).matchHeight(false); $(‘.ptp-price’).matchHeight(false); $(‘.ptp-button’).matchHeight(false); $(‘.ptp-bullet-item’).each(function( index ){ $(‘.ptp-row-id-‘+index).matchHeight(false); }); }); </script> <script type=”text/javascript”> jQuery(document).ready(function($) { $(‘.ptp-plan’).matchHeight(false); $(‘.ptp-cta’).matchHeight(false); $(‘.ptp-price’).matchHeight(false); $(‘.ptp-button’).matchHeight(false); $(‘.ptp-bullet-item’).each(function( index ){ $(‘.ptp-row-id-‘+index).matchHeight(false); }); }); </script> <script type=”text/javascript”> jQuery(document).ready(function($) { $(‘.ptp-plan’).matchHeight(false); $(‘.ptp-cta’).matchHeight(false); $(‘.ptp-price’).matchHeight(false); $(‘.ptp-button’).matchHeight(false); $(‘.ptp-bullet-item’).each(function( index ){ $(‘.ptp-row-id-‘+index).matchHeight(false); }); }); </script> <script type=”text/javascript”> jQuery(document).ready(function($) { $(‘.ptp-plan’).matchHeight(false); $(‘.ptp-cta’).matchHeight(false); $(‘.ptp-price’).matchHeight(false); $(‘.ptp-button’).matchHeight(false); $(‘.ptp-bullet-item’).each(function( index ){ $(‘.ptp-row-id-‘+index).matchHeight(false); }); }); </script> <script type=”text/javascript”> jQuery(document).ready(function($) { $(‘.ptp-plan’).matchHeight(false); $(‘.ptp-cta’).matchHeight(false); $(‘.ptp-price’).matchHeight(false); $(‘.ptp-button’).matchHeight(false); $(‘.ptp-bullet-item’).each(function( index ){ $(‘.ptp-row-id-‘+index).matchHeight(false); }); }); </script> <script type=”text/javascript”> jQuery(document).ready(function($) { $(‘.ptp-plan’).matchHeight(false); $(‘.ptp-cta’).matchHeight(false); $(‘.ptp-price’).matchHeight(false); $(‘.ptp-button’).matchHeight(false); $(‘.ptp-bullet-item’).each(function( index ){ $(‘.ptp-row-id-‘+index).matchHeight(false); }); }); </script> <script type=”text/javascript”> jQuery(document).ready(function($) { $(‘.ptp-plan’).matchHeight(false); $(‘.ptp-cta’).matchHeight(false); $(‘.ptp-price’).matchHeight(false); $(‘.ptp-button’).matchHeight(false); $(‘.ptp-bullet-item’).each(function( index ){ $(‘.ptp-row-id-‘+index).matchHeight(false); }); }); </script>
    foo.com/wp-json/wp/v2/posts
    foo.com/wp-json/wp/v2/page

    the output is mixed with non json format, like this

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error post and page return with REST-API on WP 4.7’ is closed to new replies.