GD Star Ratingloading...WordPress is one of the most popular CMS. With over 500 websites created on a daily basis, WordPress offers a great amount of customization to help users easily navigate through their dashboard. To help users get the most personalized and best experience with their system, there are a great amount of plugins available to adjust its design and functionality. While the WordPress interface is already great, there are always options and items that aren’t needed for certain users. Therefore, it’s always great to be able to hide and remove any unnecessary clutter from your admin panel. Here are some tips on how you can utilize plugins and options within WordPress to create an admin panel that fits your needs. You can also consider checking this massive list of keyboard shortcuts for WordPress administration. Customize the Information Displayed As the Administrator of your WordPress site, your admin panel often shows a lot of information. However, you don’t always need to download and install plug-ins to ensure what you need to see is displayed. Built inside of the WordPress platform itself, admins are given the option to customize the information that is shown. Under Screen Options, you can adjust the visual options available such as the Format, Categories, Tags, Slug, Featured Image, and more. You can check off the boxes for the information you want to have shown. Screen...Read More
Author: Rebecca Hill
GD Star Ratingloading...Web Development Web Development Trends You Should Apply to Your Future Project In web design and development there have been many trends that come and go. This article lists the trends worthy of your consideration. What is the Future of Front End Web Development? This article discusses the future of front end web developpment. Looking For Ways To Reduce Your Costs And Web Development Timeline? Consider These Factors This article examines which factors you should consider to reduce costs and time spent if you do choose to outsource web development. Tutorials How to Zip and Unzip Files in CodeIgniter This tutorial explains different ways you can create a zip and unzip files using built-in CodeIgniter APIs. HTML Tutorial: Beginner’s Guide for 2017 This is a step-by-step introduction to HTML and creating a simple page. Asynchronous Speech Recognition in Python This is a tutorial on how to use Google’s Speech Recognition API. PHP PHP Tutorials | PHP For Beginners PHP Tutorial for Beginners – A simple and short PHP tutorial and complete reference manual for all built-in PHP functions. This tutorial is designed for beginners to advanced developers. Laravel, The Best PHP Framework and Its Reasons This article lists the top 10 benefits of using Laravel framework. What Are The Top PHP Frameworks Every Developer Must Use in 2017? This article lists the top PHP Frameworks on the...Read More
GD Star Ratingloading...When I started developing plugins for WordPress I found it quite difficult to understand how to do database queries the right way. I had read about $wpdb, the $wpdb->prepare() method as well as different other methods like get_var(), get_results(), query()… In the end I was pretty confused as to when and how to use which method and how to use prepared statements. So for anyone struggling about this as well I created this quick tip to show you best practice when creating MySQL queries in WordPress. Selecting rows If you want to select multiple rows as an array use the get_results() method. If you would like to add parameters into the query combine it with prepare(). $results = $wpdb->get_results($wpdb->prepare("SELECT * FROM `".$wpdb->prefix."tablename` WHERE `foo` = %s ORDER BY `time` DESC LIMIT 50", $foo)); If you would like to select only a single row replace the get_results() with get_row(). Selecting the number of rows If you would like to find out how many rows exist in your table then you should use get_var() like so: $amount = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) FROM `".$wpdb->prefix."tablename` WHERE `foo` = %s", $foo)); Inserting new rows If you would like to insert new data into your table use the insert() method and don’t combine it with prepare(). The $wpdb class will escape the string automatically. $wpdb->insert('tablename', array('foo' => 'fooVal', 'bar' => 15), array('%s', '%u')); As an...Read More
Join our mailing list to receive the latest blog posts and useful links. We promise to send you emails at most once per week.