Hello!
Hopefully I am posting this in the right section, but if not, please feel free to redirect me!
I am converting some code from a website into a Wordpress template, and I am running into some issues with my page urls.
The website uses the following navigation system for the administrative section:
<ul id="alt_link">
<li><a href="admin.php">Home</a></li>
<li><a href="admin.php?page=jobs">Job List</a></li>
<li><a href="admin.php?page=users">User List</a></li>
<li><a href="admin.php?page=events">Event List</a></li>
<li><a href="admin.php?page=addevent">Add Events</a></li>
<li><a href="admincp.php?page=register">Register Students</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
<?php
if(isset($_GET['page']) && file_exists($_GET['page'].".php")) {
include ($_GET['page'].".php");
}
elseif(empty($_GET['page'])) {
echo "<strong>Home page for Admin Control Panel</strong> <br />
Please select one of the controls to view and modify the information available to your account. ";
}
else {
echo "That page does not exist.";
}
?>
Thus, when the link "Jobs List" was clicked the content of that file would be displayed and the URL in the browser would be: www.sitename.com/admin.php?page=jobs
This has worked great so far, but now that I am converting to Wordpress, I am not sure how to rewrite my navigation. Let me provide some more details:
My page template file is admin.php (the navigation is coded within this file)
The name of the page in Wordpress is "Administrator"
The page is currently hosted locally and the URL is [localhost:8888...] Any help would be greatly appreciated! Thank you!