So i think I’ve found the answer to my own question. I modified the code in the original tablequerytest.php which queries the custom table and stores results from this:
<?php
global $wpdb; //Accessing WP Database (non-WP Table) use code below.
$results = $wpdb->get_results('SELECT alias FROM wp_revslider_sliders');
foreach ($results as $result) {
$revchoices = array("text" => $result, "value" => $result);
}
return $revchoices;
?>
To this:
<?php
global $wpdb;
$query = 'select r.id, r.alias from wp_revslider_sliders r';
$sliders = $wpdb->get_results($query, OBJECT);
foreach($sliders as $slider)
{
$field[$slider->alias] = sprintf('%s',$slider->alias);
}
return $field;
?>
Related Posts:
- Responsive Images – Generating multiple images from Theme Customizer control upload?
- Modify Javascript Configuration Options for Theme Customizer Colour Picker
- Modify the Additional CSS section (adding a disclaimer)
- Customizer: Unique identifier that distinguishes which image upload control is uploading an image
- Disabling Customizer Selective Refresh shortcut icons for selected controls
- JavaScript stops working on selectively refreshed sections one inside the other
- “Add A Widget” button in the Customizer
- Customizer: save setting/control content to post/page
- Is it possible to visually group items on the theme customizer?
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Default Text not showing from customizer
- How to transfer one domain to another domain without losing theme options (customizer)?
- Is there a WordPress boolean for “theme_customizer_active()”?
- Customizer: get_preview_url() inside customize_save_after hook
- add shortcode support in customizer
- What is difference between add_theme_support and Theme Customization API?
- Text View (Code View) in WordPress Customizer TinyMCE Editor
- WordPress Customizer Help with FontAwesome Icon
- Customizer API way function is_customize_preview() works only in main page?
- trying to figure out how to use more that one image upload in the same section in theme customizer
- Get entered value of customiser field for live preview
- How to remove the Theme Customization Button from the dashboard and themes options page?
- What are the ADVANTAGES of ORIGINAL wordpress template structure?
- Customizer Active Callback not working
- Trigger Customizer saving process with Javascript only
- Adding customizer styles with wp_add_inline_style
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- How to disable 3.1 “Admin Bar” via script for the admin user?
- What is the best practice for customizing a plugin’s JavaScript/jQuery?
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- Can we add more than one control under a setting in WP theme customizer?
- Widgets panel not displaying in the Theme Customizer
- Is it possible to display the admin bar while in the Theme Customizer?
- How do I get a parent theme modification from a child theme?
- How the WordPress sidebar works
- How to Change CSS Variable value in Theme Customizer Live Preview
- Extend walker – navigation, adding data attribute to a tag
- How can I remove the Static Front Page option from the Customizer
- Set front page as static page [closed]
- How to programmatically bring back “excerpts” field in post editor in WP 3.1+
- Get background color for Live Preview with Theme Customization API?
- wp_head() not inserting the default stylesheet style.css
- First completely customized theme, where should I start?
- Theme Customizer not loading
- WordPress Customizer Control with React
- Best practices: Custom theme sidebar menu – hardcode or widget?
- How to change the customizer´s sidebar width?
- Theme Customizer – Choose where widget area appears, to let users organise widgets
- How i can get widgets areas working in customizer?
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- How to disable automatic colors in the Twenty Twenty theme?
- Removing non native customizer settings from a child theme
- Input ordering in wordpress theme customizer
- which is the best way to customize nav-menu-template.php?
- Where should I update_options in a theme?
- Add more then one site logo – custom-logo theme support
- Using an if statement in the theme customizer page
- Edit footer via customizer
- How do i make a custom section’s setting display the default value in Customizer?
- How to add styles set by user in the customizer
- Customizer: active_callback and sanitize_callback incompatibility?
- Can I add multiple arrays within add_theme_support( ‘colors’ )?
- Move default page templates to sub directory
- The ‘default’ attribute from $wp_customize->add_setting() method not in db?
- Using My Own Classes On Wp Unit Tests
- How to modify default controls in WordPress theme customizer
- WooCommerce: multiple input field for multiple product variations
- Child Theme header1.php file not overwriting parent theme’s header1.php file
- Why in the static pages of my theme are showing these information?
- Can I make a Customizer dropdown-pages list include private pages?
- searchform.php doesn’t work properly
- Create something that can be added or removed in Customizer
- How to add custom meta box when you have a custom page template file
- How to call a widget in a loop at a specific iteration value?
- Right procedure when you develop a WP Website for a client
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Customize Option Framework
- How to custom category template based on category?
- Let user to upload multiple time
- How to dynamically set a background image with the customizer without putting the css as an inline-style
- Image cropping isn’t working correctly when using Offload Media
- WordPress Custom Theme : Theme Builder vs ACF vs Gutenberg
- Styling the website via the customizer – do the changes stay after theme update?
- How to toggle WP Customizer Panel and Section with JavaScript API?
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- Add multiple sections, settings and controls at once to the Customizer
- How to fix an issue with customizer live preview?
- Any way to permanently translate themes?
- Customizer_register theme options not saving
- Editable screenshot.png in a custom theme developed
- How to share posts (and plugins) between existing site and new, separate dev/test installation?
- Using Customizer value in an external PHP file inside a theme
- How to prevent XSS attack in wordpress theme?
- get_theme_mod not pulling css colors into header using wp_head
- WordPress 3.5 + Foundation 5 not working on IE9
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- Theme Option’s Save Button is not working
- Permalinks problem with custom theme
- How to split the site’s layout without damaging this layout? [closed]
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?