• geegood.com

    (@thaiyindee)


    I want to use this WP table reloaded. But I need to understand and know if I can pull data out? I want to populate a taxonomy drop down – is this possible and possibly how? Ie. How do I reach the actual data in WP table reloaded via PHP script so I can call a loop like ex:

    foreach ($my_wp_table_reloaded[‘field_name’] as $field_data;
    my_taxonomy_field_option = $field_data;

    So $my_wp_table_reloaded[‘field_name’] would come from within WP table reloaded or a reference to it via global?

    Thanks. Looks like what I am looking for.

Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    I’m afraid that this is not really possible and that this is not within the intended use case of the plugin.

    You could do it by manually pulling the WP option from the database and work through the resulting array (take a look at the plugin source to see how the plugin does it), but I really don’t recommend this.
    WP-Table Reloaded was not designed to offer such dynamic querying, as its purpose is to show static tables on pages/posts without the need of HTML knowledge.

    You are likely better off with a custom solution and by using your own database table.

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Get data from tables->fields via PHP?’ is closed to new replies.