WordPress.org

Ready to get started?Download WordPress

Forums

Admin page like posts (5 posts)

  1. albinjoseph
    Member
    Posted 2 years ago #

    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?

    Thanks
    -Albin

  2. Stefan M.
    Member
    Posted 2 years ago #

    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.

    Regards

  3. albinjoseph
    Member
    Posted 2 years ago #

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

    Thanks
    -Albin

  4. Stefan M.
    Member
    Posted 2 years ago #

    'custom tables' is my plugin.

  5. wspencer
    Member
    Posted 2 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic