Error post and page return with REST-API on WP 4.7
-
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/pageAfter 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/pagethe output is mixed with non json format, like this
- The topic ‘Error post and page return with REST-API on WP 4.7’ is closed to new replies.