wpdb LIKE request shows all database data

Can you verify that $_POST[‘name’] is obtaining a value. I suggest echoing it out to the page for debugging (maybe in comment tags if site is live). If $_POST[‘name’] is empty, then all results will be returned because the query will say user_nicename LIKE ‘%’ Just as a precaution in any case, you should do … Read more

Fetching wpdb data from a php file seems to break?

Initial thoughts are that it depends where your load_marque.php file is located. I assume within a theme or plugin. If so, what happens when the file is called directly. If there are some errors, these will be shown on the page. Based on the on here https://codex.wordpress.org/Class_Reference/wpdb your query your query may need to be … Read more

$wpdb->insert not working for last select option

The ID can’t be empty. If you have created your table and set your ID as auto increment, you don’t have to insert it, it will be generated automatically. So all you have to do is the following: $result = $wpdb->insert(‘pagos’, array( “nombre” => $nombre, “tipo” => $tipo, “monto” => $monto), array(“%s”, “%s”, “%d”));

How to create a list of terms who’s posts also have a predefined external term?

if i understand correctly you want to get a list of albums (posts) of a specific artist(taxonomy) and that are have ihaveit term. if so the its a simple query using tax_query: $args = array( ‘posts_per_page’ => -1, //get all ‘post_type’ => ‘album’, ‘tax_query’ => array( ‘relation’ => ‘AND’, array( ‘taxonomy’ => ‘artist’, ‘field’ => … Read more

Jeditable Plugin working as it should – scope issue?

I think you will need to include some type of WP core file into the save.php file (I could be wrong). Since this file isn’t being called specifically by your plugin (or WP for that matter), it won’t have all of the variables that WP has to offer. Try adding this to the top of … Read more