Remove WordPress scripts

What Theme are you using? Your question is entirely Theme-dependent, so specific answers will requiring knowing what Theme you use. (Also, it would be helpful to know if any of your Plugins are injecting scripts.) The answer really depends on how those scripts and scripts are called. If they are called properly, they are registered … Read more

Add javascript to wp_head with call to plugin options?

Nesting functions in PHP very rarely makes sense. There are some advanced reason for doing it, but I doubt they are needed in this case. class TweetFeedIt { function tweet_feed_it() { function twitter_username_callback() { function tweet_count_callback() { […] } } } } The add_action() function can take up to 4 parameters, but those parameters are … Read more

Custom field as meta description

If you want to fetch the data from a custom field named wpse_desc: then here’s one way to do that with your code snippet: function wpse_custom_meta_description() { // Nothing to do if ( ! is_single() ) return; // Fetch our custom field value $desc = get_post_meta( get_queried_object_id(), ‘wpse_desc’, true ); // Output if( ! empty( … Read more

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