Links in Plugin (2 posts)

  1. zurtri
    Posted 5 years ago #

    I am writing a plugin for the first time.

    The Plugin has a number of section - how do I have <a href= links in my plugin.

    I have a submenu appearsing under Pages. When you click on the submenu link it shows:

    Games | Teams | Players

    How do I link each of the above to call a separate function within the plugin?

    My google-fu has failed me.


  2. zurtri
    Posted 5 years ago #

    I solved it by doing this:

    $thispage = $_SERVER['PHP_SELF'].'?'.$_SERVER['QUERY_STRING'];
    echo '<a href='.$thispage.'&tppage=teams>Team Names</a>';

    Is there a better way?

Topic Closed

This topic has been closed to new replies.

About this Topic