カスタムフィールドにURLがあった場合に、リダイレクトする SEO的に非推奨
<?php if ( post_custom('redirect') ) : ?> <script type="text/javascript"> location.replace('<?php echo esc_url(post_custom('redirect')); ?>') </script> <?php endif; ?>