How to set a Cookie-Free Domain with WordPress?

Your mistake is the WP_CONTENT_URL’s postfix. You should set the definitions in the following manner: define(“COOKIE_DOMAIN”, “www.artisanplombier-pascher.com”); define(“WP_CONTENT_URL”, “https://static.artisanplombier-pascher.com”); Then, you should configure the static. subdomain’s path in your server’s configuration file or your hosting’s control panel. Create a subdomain named “static” or something similar and configure its path to your (WordPress) website’s “wp-content” folder. … Read more

get_the_id, get_the_permalink, and get_the_title all with one DB call

These functions do not even call the database each time they are run. It just pulls them off the current post object that was returned by the database query that retrieved the posts. There’s nothing to optimise here. get_the_ID() and get_the_title() literally just return $post->ID and $post->post_title. get_permalink() is a little bit more complicated, because … Read more

Optimizing site speed by localizing paths

This is nonsense. Almost all URL getters are a result of get_option(), eg. get_option(‘stylesheet_root’), get_option(‘template’) and so on. These options are loaded very early during the request, they are cached and not fetched again. Since the options are fetched anyway, all you can improve is processing time. Nanoseconds. This isn’t worth the trouble. Just compare … Read more

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