RA ANALYTICA

$url = ‘https://pro-api.coinmarketcap.com/v2/cryptocurrency/price-performance-stats/latest’;
$response_body = file_get_contents( $url );
$data = json_decode( $response_body );
$items = array();
foreach ( $data as $item ) {
$items[] = wp_kses_post( $item[‘title’][‘rendered’] );
}
$list = wp_list_categories( array(
‘echo’ => false,
‘title_li’ => ”,
‘include’ => $items,
) );
echo $list;

More Reading

Post navigation

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Verified by MonsterInsights