wordpress新页面跳转

所谓的跳转是说:在导航栏那里有个链接,点击之后,去了别的域名或者子域.

参考了这个链接:

可惜代码有误阿….

我简单的修改了下,那个location.php的第一行应当注释掉,定义了一个完全没用的参数….


<?php

/* Template Name: Location to */
//$pagenavnum=istOption('pagenavnum'); <--主要修改这里
if(have_posts()){while(have_posts()):the_post();
$locationURL=get_post_meta($post->ID,"LocationURL",$single=true);
header("location:$locationURL");
endwhile;}?>
* A short link for this article:     Stats

此条目发表在 Uncategorized 分类目录。将固定链接加入收藏夹。

发表评论

电子邮件地址不会被公开。 必填项已被标记为 *

*

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">