Found the solution at the problem: using “return” wasn’t the right way… have to use “echo” in this way because it isn’t a function but a simple PHP that gives back an object. Thanks again to all
Related Posts:
- How to delete all records from or empty a custom database table?
- dbDelta only creates the last table
- Is their any way to Extend WPDB class and Overwrite the Default Query Function
- Stackoverflow type of badge plugin giving warnings in WordPress 3.5
- Missing argument 2 for wpdb::prepare() Issue
- ob_end_flush error when using wpdb in plugin
- $wpdb->get_results() does not fetch results with unicode ‘WHERE’ clause
- post_content getting cut off on blank space on $wpdb->update
- Why am i getting this error? WordPress database error: [Query was empty]
- Inserting large amounts of data into a custom table during plugin install
- plugin ajax to external php file always return null
- When to call add_filter
- Doubt using $wpbd->get_col for a single column
- Access WordPress database outside of WordPress
- Correct way to perform non-cacheable DB query
- Help With MySQL to WPDB Query Conversion
- Creating mySQL procedure with $wpdb
- Problem with creating tables for Plugin
- Change commission_status paid when withdraw_status vendor is completed
- $wpdb->get_row returns column name instead of column value
- Create a table with wordpress plugin boilerplate
- plugin code is pulling information from database in one instance and not in other. What is wrong?
- Object method calling for global $wpdb in header.php
- Using wpdb without loading all plug-ins via wp-load.php
- after wordpress update to 3.5+ i get many errors in plugin wpdb::prepare()
- How to insert multiple postmeta values with one query?
- Cannot get wpdb data (Error in a simple fuction) [closed]
- WPDB: Update table
- Issue running db create table query from static method
- $wpdb update query in plugin only updating one column
- Mowing site to another domain in simplest way
- Store plugin page content in wp_options?
- Displaying data from another database
- Using $wpdb in a plugin, what sort of data does it return?
- How to access the WordPress DB from a plugin file
- WordPress database error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version [closed]
- Linked pages from plugin on front can’t see $wpdb
- Need help creating asynchronous data scraper in WordPress
- How to fetch WordPress database values in JavaScript widget
- $wpdb->delete not working for me
- any word search WordPress
- How to securely controlling data without keeping it in postmeta?
- Using id to show item
- No result after wpdb->insert
- How to fix slow comment query?
- Write mysql credentials in plugin
- Action hook “wp_insert_post” works but not for last imported post
- Proper way to trigger a MySQL query via link in a plugin
- get_var result empty for query of custom table in plugin admin
- Making plugin to use different table prefix cause permission problem
- Is it safe to increase/alter the size of the wp_post.guid column from VARCHAR(255) to VARCHAR(2048)?
- Get all the related data from WordPress DB
- $wpdb selects wrong database
- How to dispaly post informations (such as titles) in an admin plugin menu page?
- FATAL ERROR: WP complains about redeclaration [closed]
- How to check record is exist or not in WordPress CRUD Operation with $wpdb
- wp db request without refreshing the page
- Translate a plugin using .po .mo files
- How to make Pull Requests on a wordpress.org plugin?
- Should we use plugins that aren’t available from the official WordPress site?
- is_post_type_archive not working in feed
- How to edit plugin’s html? [closed]
- Datepicker not supporting timepicker
- Escape special characters in image link
- Disable WordPress password reset via mails,instead notify admin about the reset request
- Can’t use the built-in wordpress install/upgrade plugin feature [closed]
- Let user subscribe to specific categories
- How organize uploaded media in WP?
- How to hide some section in WordPress under Post
- is there a way to link one of the field in ACF field group, to a field in a media attachment page? [closed]
- Get errors from WP_Error to different variables
- Proper way to replace the_content only for pages created by custom plugin
- Add category selection to custom post type (plugin)
- How to install plugin only from PHP file?
- Show author on every sub-page
- Only allowing some emails to create an account [closed]
- AJAX on Front-End Button Click not working – Custom Plugin
- Migrating Asp.Net site to WordPress site
- Get ‘Headers already sent’ error for the plugin I am creating when I try to login
- Plugin to email a post or page to someone
- Make plugin php file called directly aware of WordPress?
- WordPress’s is_plugin_active_for_network function not working for multisites
- How to use existing hook in twentytwelve to all theme of wordpress?
- WordPress get the latest plugin installed details
- Recent Posts+, how to solve multiwidget?
- Plugin error after installation
- Having a widget only show up in print
- How to Join wp_posts & wp_postmeta table using custom query
- Randomize post (and page) IDs on generation
- Cron task gets removed from the schedule
- My wordpress local urls is still displayed even moved to live
- How to Unhook actions/filters in within Class in plugin
- How to show private pages based on a user’s role?
- Create csv file in plugin
- The plugin generated XXX characters of unexpected output…help?
- WooCommerce doesn’t show UK countries in the shipping options [closed]
- How to edit a non logged in page?
- How can I make a function work only for desktops and not for mobiles?
- remover item do carrinho na página de checkout
- WordPress Gutenberg Custom Block the viewScript does not get loaded on the frontend when my block is inserted