Posts Tagged ‘链接’

WordPress中将页面直接跳转到一个链接的方法

我一直想将导航栏添加的页面直接引导到一个链接,链接任意网页和页面。于是在网上找到了三两种解决方式:

方式一: (本博客“找文件”页面即是通过该方法实现!)
只需要创建一个命名为Redirect.php的文件,内容如下:

<?php

/*

Template Name: Redirect

*/

if (have_posts()) {

the_post();

Read more…




Be the first to comment  Posted by admin - 2011年1月19日 at 13:19 Has 1828 Views

  Categories: 插件, 文章发布   Tags: ,