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


how to link custom menu to author.php

我正在尝试创建一个新的自定义菜单,这个菜单是wordpress中author.php的链接。我尝试了一些技巧,但还是没能得到结果。

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

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