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

Checking if meta_value exists for any user

I personally try to stay away from mysql queries when I can use WordPress functions to achieve the same thing. You could try using get_users, Is this what you are trying to achieve: <?php $blogusers = get_users(‘meta_value=Referral’); foreach ($blogusers as $user) { echo $user->user_email; } ?> Untested. But that should display every user with a … Read more

Can’t get expected result from a wpdb query

I know I probably can’t see the full picture, but in the excerpt you provided isn’t globalizing $post. global $wpdb, $post; $short = $wpdb->get_var(“SELECT url FROM $wpdb->prefix.’tweet_url’ WHERE post_id = ‘$post->ID’ “);

Using $wpdb to update current post

Nevermind, I was complicating this whole process because I wasn’t thinking about just using get_post_meta(). add_action(‘draft_to_publish’,’gcpl_draft_to_published’); function gcpl_draft_to_published($post){ $exp_processed = get_post_meta($post->ID, ‘_expiration-date-processed’, true); // check if the custom field has a value if($exp_processed != ”) { delete_post_meta($post->ID, ‘_expiration-date-processed’); } }

Create Table Failed Column Date DateType

Well, after looking at the other tables I had created successfully, only difference was the description column. Apparently WordPress or MySQL doesn’t like that as a column name and somehow has it reserved. So, after renaming it, the table was created fine. Hope this helps someone else in the same boat.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)