WordPress

How to Set Cookies in WordPress

Setting Cookies in WordPress. As a budding WordPress developer or hobbyist, once you’ve become familiar with the basics of WordPress, you’ll no doubt want to experiment further by developing your own widgets and plugins, or by creating your own themes, etc. And, along the way you’ll at some point want to know how to set cookies in WordPress. Once you know how to do it, you’ll realize how simple it is to accomplish. Here we explain.

Continue reading »
Computer Programmer

JavaScript & CSS – How to Determine Script Usage

Once you have your fancy new website looking pretty, one of the next things you might do is to try and optimize various aspects of it. This may include optimizing images so they load more quickly, and making sure the site is easily accessible for those with impaired vision, for example, and ensuring the site is usable on various types of device. These are all excellent ideas; another is to ensure that the JavaScript and CSS files being included in your pages are actually being utilized properly.

Continue reading »
WordPress

WordPress – Get the SQL Query Used by get_posts()

The get_posts() function in WordPress retrieves an array of posts matching the parameters provided by the programmer. Thus, it’s one of the most important and useful functions of WordPress, since posts are quite often at the heart of any WordPress website. The results of any query to the function can obviously be seen by examining the output, but sometimes it’s really helpful to examine the SQL query actually created by get_posts().

Continue reading »