How to insert code into wordpress

If you are running your blog on WordPress.com, you just include the following lines before your code. [sourcecode language=”csharp”] //your code comes here [/sourcecode] WordPress.com gives us the facility to avoid worrying about code highlighting. If your code is in between these blocks then it will automatically render as per the language you specified. It … Read more

What’s the difference between get_stylesheet_directory_uri() and get_template_directory_uri() when enqueuing scripts in wordpress

Both functions can be used in a parent or a child theme. get_template_directory_uri will always refer to the parent theme folder for assets. get_stylesheet_directory_uri will refer to the “current” theme folder for assets (which could be the parent or the child, depending on where it is called). For example, in a child theme: // This … Read more

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