如何将自定义菜单链接到author.php

时间:2015-11-06 06:40:48

标签: php wordpress wordpress-theming

我正在尝试创建一个新的自定义菜单,此菜单链接到wordpress中的author.php。我尝试了一些技巧,但我仍然无法得到结果。

我希望这里的每个人都可以帮助我。

1 个答案:

答案 0 :(得分:0)



You can get author.php via below steps: 

1) Create a custom menu url like: http://example.com/apage/?mydata=thisdata
2) Then get paramenter   $myvalue = $_GET('mydata');
<?php 
 $myvalue = $_GET('mydata');

if($myvalue)
  {
     header('Location: FILE PATH');
  }

?>

Hope this trick will help you
&#13;
&#13;
&#13;