Tag Archives: wordpress

WordPress Mysql Migration

Magic formula: Most free plugin to “backup” charge your migration, when is a matter of running few lines of code on your database… UPDATE wp_options SET option_value = replace(option_value, ‘http://oldurl.com’, ‘https://newurl.com’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’; UPDATE … Continue reading

Posted in Uncategorized | Tagged , | Comments Off on WordPress Mysql Migration

WordPress Auto Lazy Loading

New wordpress (since?) Has an automatically lazy loading for images.. if that broke your site, you can disable it with the following code:add_filter( ‘wp_lazy_loading_enabled’, ‘__return_false’ ); AC.

Posted in Uncategorized | Tagged | Comments Off on WordPress Auto Lazy Loading

Speed UP WordPress [or any site]

If you use a shitty server/network or your wordpress theme/plugins/content combination is heavy you can speed up the loading on the side of the client and server side by using a plugin like “W3 Total Cache”; it could set easily … Continue reading

Posted in Medium Technical, Wordpress | Tagged , , , , , , , , | Comments Off on Speed UP WordPress [or any site]

WordPress Proxy

Running WordPress on a internal network or something like that and want to handle all the internal connections with a proxy? Just edit the “wp-config.php” and add this: define(‘WP_PROXY_HOST’, ‘90.90.90.90’); define(‘WP_PROXY_PORT’, ‘3128’); define(‘WP_PROXY_USERNAME’, ‘username’); define(‘WP_PROXY_PASSWORD’, ‘password’); define(‘WP_PROXY_BYPASS_HOSTS’, ‘localhost, www.someurl.com’); References: … Continue reading

Posted in Medium Technical, Wordpress | Tagged , , , | Comments Off on WordPress Proxy

WordPress – Get all posts where a meta key does not exist

Simple… $search_values[‘meta_query’] = array( ‘relation’ => ‘OR’, array( ‘key’ => ‘psychedelics’, //replace with the non existing field to query ‘compare’ => ‘NOT EXISTS’, ‘value’ => ” // Ignored, but needed to work… ), array( ‘key’ => ‘psychedelics’, //replace with the … Continue reading

Posted in Learned Today, Medium Technical, Wordpress | Tagged , , , , , | Comments Off on WordPress – Get all posts where a meta key does not exist

Getting rid of the spam on WorPress

Hello, There are plenty of bots that crawl the web day after day searching for WordPress blogs to fill them with URLs in order to get publicity (SEO) for some sites… For example the case of my anonymous blog (this … Continue reading

Posted in Basic Technical | Tagged , , , , | Comments Off on Getting rid of the spam on WorPress