Tag Info

Hot answers tagged


Although the actual question is off topic, I would make a few alterations to the code to make it more reliable and a bit faster and less resource intensive: Add $content = ''; right at the top of the function, this will take care off the Notice: Undefined variable notice Only get the term id's from wp_get_post_terms(). This will make this function faster ...


The output that you posted above is expected behaviour for $wpdb->print_error() if the following is true - You are running a single site, not multisite $wpdb->suppress_errors is set to false $wpdb->show_errors is set to false From the looks of your code, you meet all those conditions. Note also that, unless you have turned them off previously, ...

Only top voted, non community-wiki answers of a minimum length are eligible