// use the wpgetapi_endpoint() function to call our endpoint
// and save into the $ticker_price variable
$VoteDoge_priceMC = wpgetapi_endpoint( 'COING', 'COING_MC' );
if ( ! empty( $VoteDoge_priceMC ) && is_array( $VoteDoge_priceMC ) ) {
foreach( $VoteDoge_priceMC as $data ) {
// display the price
echo $data['usd'];
// display the marketCap
echo $data['usd_market_cap'];
}
}
// use the wpgetapi_endpoint() function to call our endpoint
// and save into the $ticker_price variable
$VoteDoge_priceMC = wpgetapi_endpoint( 'COING', 'COING_MC' );
if ( ! empty( $VoteDoge_priceMC ) && is_array( $VoteDoge_priceMC ) ) {
foreach( $VoteDoge_priceMC as $data ) {
// display the price
echo $data['usd'];
// display the marketCap
echo $data['usd_market_cap'];
}
}
This is an example page. It’s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:
VoteDoge number of voters:
The Results Format for this endpoint is set to ‘PHP array data’ – shortcodes are unable to output this type of data.Please change the Results Format to ‘JSON string’ in the endpoint settings page.
Alternatively, please see our tutorial on how to format your API data as HTML..
Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like piƱa coladas. (And gettin’ caught in the rain.)
…or something like this:
The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.
As a new WordPress user, you should go to your dashboard to delete this page and create new pages for your content. Have fun!