Forums

[Plugin: WP-Table Reloaded] List tables in template (2 posts)

  1. pavelevap
    Member
    Posted 2 years ago #

    Hi,

    I found in manual template function wp_table_reloaded_print_table() to show some table (based on ID). But I would like to list on my page all tables (only their titles and description), or only latest 10 tables. Is it possible somehow?

    I can probably pass ID as variable into wp_table_reloaded_print_table(), but some ID can be missing (deleted tables) and I am not sure how to get ID of the latest table? I tried to search through manual, but I was not successfull...

    Thank you very much for your help...

  2. TobiasBg
    Member
    Posted 2 years ago #

    Hi Pavel,

    that is not possible with that (or another) function directly.

    You would need some more code around it.
    My suggestion: Have a look at the files controller-admin.php and view-list.php.
    In the first file, you can see how the list of tables is loaded from the database (in function init_plugin()), while in the second function, the display logic is visible.

    Best wishes,
    Tobias

Topic Closed

This topic has been closed to new replies.

About this Topic