Import query from wordpress database into template
-
Hi, I’ve looked everywhere but to be honest I don’t really know where to start. I’ve tried this link with no success.
https://codex.www.ads-software.com/Function_Reference/wpdb_ClassBasically I’m trying to import some data from the existing database onto a custom template.
The table in the database exists (wp_store_locator) is populated from a plugin (store locator) and I’m trying to take the data fields (sl_phone) from these fields and place them on different pages within the site based on the page id.
I get the <?php $wpdb->query(‘query’); ?> but I don’t know what the query is or where to start.
- The topic ‘Import query from wordpress database into template’ is closed to new replies.