Configuration guides for IT Administrators

⏱︎
Read time:
WordPress defaults security feature restricts use of JavaScript into your content. However there are plenty of plugins out in WordPress that allows JavaScript within page or posts. After testing few, the most easy and workable plugin we found is Scripts n Styles. It provides awesome features like Blog Wide JavaScript – Code entered here will be included…

⏱︎
Read time:
This simple method worked for my WordPress website to pass a parameter in URL. In this tutorial, the Datewise Invoices page lists down all the invoices created between the dates. When you click on a specific Invoice No, the invoice no is passed as parameter value and a new webpage opens up more details of the invoice. Step 1: Add this…

⏱︎
Read time:
exit(var_dump( $wpdb->last_query )) prints the last query that is executed by database. This is very useful for developers to verify and troubleshoot errors in your query syntax or data format. One sample is presented here for you. if ($wpdb->update(“laundry_item_master”, array( ‘dryclean_normal’ => $dryclean_normal, ‘dryclean_urgent’ => $dryclean_urgent, ‘washing_normal’ => $washing_normal, ‘washing_urgent’ => $washing_urgent, ‘pressing_normal’ => $pressing_normal, ‘pressing_urgent’ => $pressing_urgent,…

⏱︎
Read time:
There are times that you wanted to print the exact query itself or query result right after it is executed. Use following wpdb class variables to troubleshoot. $wpdb->last_query This prints that last query that is executed, I mean the exact MySQL Query itself. $laundrycustomer = $wpdb->get_row(“SELECT company_name, customer_name, phone, address FROM laundry_customers where phone = $searchphone;”);…

⏱︎
Read time:
WordPress defines a class called wpdb, which contains a set of functions used to interact with a database. Its primary purpose is to provide an interface with the WordPress database, but can be used to communicate with any other appropriate database. The $wpdb object can talk to any number of tables, but only to one…

⏱︎
Read time:
Its a common practice to have WordPress running on XAMPP, but how to fix your WordPress site, if you have changed your default Apache port 80 to something else, say 8081. Access your MySQL wordpress database, via phpMyAdmin Open wp_options table Look for siteurl and home parameters and change to respective port

I’m Lucas Brey, a travel blogger sharing practical guides, hidden gems, and honest tips from the road. Follow along for smart itineraries, great food finds, and stories worth bookmarking.