WP Plugin admin area help

1 replies
So Im working on a WP plugin that requires 2 pages, a list and then an edit page.

Now normally on a site I would just have the list and then an edit button to edit the entry. Lets call this list.php

The entry button would be a simple redirect to an edit page with the ID of the list in the URL , lets call that edit.php. So the URL to edit.php from list.php would look like edit.php?p=1 for example.

Im not sure how to do this in a WP plugin, I can make an admin area with add_action('admin_menu') and I can include in the list.php but how do I make links and pass a variable to the admin area? I cant figure out how to do that. Now I could use AJAX and and pass the p varable and then reload the results in a div but that seems super overkill. There must be a more simple way to have an admin area that has multiple pages.

Please advise.
#admin #area #plugin
  • Profile picture of the author dconjar
    I'm confused. If you've just got a list with editable items, why not use a custom post type?
    {{ DiscussionBoard.errors[8273347].message }}

Trending Topics