json_decode issue with amp-list
-
Hi Milind,
Another issue with the output.
Code is:
for($x = 0;$x<$no_of_posts;$x++) { $list_array[ $x ]['year'] = get_post_meta($list_posts[$x], 'copyrightyear', true); $list_array[ $x ]['title'] = get_the_title($list_posts[$x]); $list_array[ $x ]['url'] = get_the_permalink($list_posts[$x]); } echo wp_json_encode( array( 'items' => $list_array ) ); return wp_json_encode( array( 'items' => $list_array ) );The output in the amp-list is showing &8211, etc on the frontend – https://www.flixwatch.co/stagin/lists/20-best-japanese-movies-and-tv-shows-on-netflix-sri-lanka/. The wp_json_encode seems to be fine – https://www.flixwatch.co/stagin/list-data/?post_id=66729
Regards
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘json_decode issue with amp-list’ is closed to new replies.