Get posts and include taxonomy term

You should be using get_the_terms(). wp_get_post_terms() queries the db to get post term info, where as get_the_terms() returns the post term objects directly from the post term cache and only queries the db if that info is not available. By default, all post’s terms are cached by the query being executed. EDIT I cannot comment … Read more

does wordpress serve static files?

Usually: no. When WordPress is running on apache with mod_rewrite enabled, it’ll use # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress To make sure that static files will NOT be served through WP. A plugin might … Read more

Wordress importing scripts

Option 2. Option 1 is just flat out incorrect, not a valid alternative. The proper methods for loading CSS and JavaScript in WordPress are documented here. Also, there’s no meaningful performance difference between the two.

Admin taking a very long time to load

I would do most of my troubleshooting in the Debug Bar plugin along with the Debug Bar extender plugin. This plugin gives you detailed access to everything that is going on behind the scenes. It can also detail memory usage and execution time for each function and database query along with where it was called … Read more

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