$endpoint = 'https://search.acestream.net/?method=search&api_version=1.0&api_key=test_api_key&query=discovery';
$json = file_get_contents($endpoint);
$data = json_decode($json, true);
print_r($data);
if ($_GET['do'] == 'reg') {
$reg .= '<b><div class="reg"></div></b>';
} elseif ($_GET['do'] == 'sign') {
$reg .= "GET=sign";
}
<?php if ( $posts = get_field('related') ): ?>
<h3 class="related">Похожие записи</h3>
<p>
<?php foreach ( $posts as $post ): ?>
<a href="<?php the_permalink($post->ID) ?>"><?php echo get_the_title($post->ID) ?> »</a><br>
<?php endforeach; ?>
</p>
<hr>
<?php endif; ?>
<?php echo htmlspecialchars($_POST['company'], ENT_QUOTES)?>