Support » Plugins and Hacks » Hacks » Admin page like posts

Admin page like posts

  • Hi,

    I am writing a plugin and as part of that I need to have an admin interface like the one we have for pages and posts where we display the entries. For me the data will be coming from a custom table. I had gone through the code trying to mimic the functionality, however I am not able to get it working for my custom table. Can someone please help me in creating an admin interface similar to what we have today for my custom tables. Is there any tutorial/documentation or something that describes the steps we need to follow when creating an admin interface similar to what wordpress has today?


Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi. why do you not import your custom table within my plugin?

    Otherwise, my admininterface was very complexe, but an easy one should be done in hours.


    hi Stefan, thank you for your reply. Could you please tell me which is your plugin too. I will try importing it.


    ‘custom tables’ is my plugin.

    This link will help you style the table for display in the admin area.

    I did something similar by creating a custom plugin. You’ll have to write a custom function that uses the add_menu_page() or add_submenu_page() functions and then hook them into the admin_menu action.

    Read up on the add_menu_page() function. You’ll see that you have to write ANOTHER function that is essentially the display of the admin page. Use the classes that the above listed article shows you to style your table.

    You’ll have to play around with it a bit but I’m happy to point you in the right direction however I can. I learned a lot by doing it myself.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Admin page like posts’ is closed to new replies.