Linking to Files in Root Directory Outside of WP Installation

Your first attempt does not work because get_template_directory_uri returns the URL to your theme directory. Your second attempt will work, but if you don’t want to hard code the domain you could either try using a root relative path or fetching the domain portion of your site url. Relative path: wp_register_script(‘circle-bounce’, ‘/js/general.js’, array( ‘jquery’, ‘jquery-effects-core’, … Read more

Load template for specific subdomain

Without more detail about the kind of template you’d be serving up, the best I can advise is that you can use the ‘template_redirect’ hook to override the entire Template Hierarchy. A more delicate way to do this would be by using on of the more specific filters. Each of the conditional get_*_template() functions in … Read more

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