WordPress.org

Support

Support » How-To and Troubleshooting » Results from plugin table w/o hacking wp-db.php

Results from plugin table w/o hacking wp-db.php

  • karimun

    @karimun

    In a page template I use:

    $test = $wpdb->get_results(“THE_QUERY_STRING”)

    to query results from a database table created by a plugin, so its NOT a wordpress table installed by default.
    This works ONLY if I add the table name to $tables array in wp-db.php

    QUESTION:
    How do you gather results from a plugin table without changing code inside wp-db.php?

  • The topic ‘Results from plugin table w/o hacking wp-db.php’ is closed to new replies.
Skip to toolbar