我有一个 WordPress 网站,我使用以下内容从自定义字段调用 URL
<?php $redirect_url = get_post_meta($post->ID, 're_url', true);
我还使用 TinyBox2 在弹出框中显示此 URL,使用我设置的回调函数在页脚中运行一个函数,该函数现在重定向到 www.google.com
TinyBox
-------
<div class="redirect" onclick="TINY.box.show({html:'Your website is : <br /><?php echo get_post_meta($post->ID, 're_url', true); ?>',animate:true,close:true,mask:false,boxid:'success',openjs:function(){openJS()}})"></li>
Footer
------
<script type="text/javascript">
function openJS(){setTimeout("top.location.href = '$redirect_url'",5000);}
</script<
这不像我想要的那样工作,有人可以解释我哪里出错了吗?