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