Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/263.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP中的重定向链接_Php_Wordpress - Fatal编程技术网

PHP中的重定向链接

PHP中的重定向链接,php,wordpress,Php,Wordpress,我有一个wordpress主题,允许我添加特定的信息和链接。我有一些代码来管理指向url的链接。此时,链接在同一选项卡中打开,意味着用户离开我们的网站。我需要在新选项卡中打开链接。不是一个PHP开发人员,我不知道如何做到这一点,需要一些帮助。代码如下: <?php if ($launch) : ?> <div class="project-view"> <strong><?php _e('Stand

我有一个wordpress主题,允许我添加特定的信息和链接。我有一些代码来管理指向url的链接。此时,链接在同一选项卡中打开,意味着用户离开我们的网站。我需要在新选项卡中打开链接。不是一个PHP开发人员,我不知道如何做到这一点,需要一些帮助。代码如下:

<?php if ($launch) : ?>
            <div class="project-view">
                <strong><?php _e('Standard', 'themify'); ?></strong>
                <a href="<?php echo esc_url($launch); ?>"><?php _e('View Standard', 'themify'); ?></a>
            </div>
    <?php endif; ?>


谢谢



<?php if ($launch) : ?>
        <div class="project-view">
            <strong><?php _e('Standard', 'themify'); ?></strong>
            <a href="<?php echo esc_url($launch); ?>" target="_blank"><?php _e('View Standard', 'themify'); ?></a>
        </div>
<?php endif; ?>