nometech

PHP Foreach: All You Need to Know

One of the most-used functions in my life with PHP is foreach. Partly, this is because it’s just an exquisitely named function, and it maps well to how I think. Partly this is because it’s kind of the backbone of a webpage: iterate through a set of things, operating on some selectively, and then display them all.To be good at PHP, you really must know foreach. And so that’s our goal: covering the most common and useful parts of foreach in a way that we hope makes it easy for you to understand. We’ll also cover a few of the more complex...

nometech

How to Migrate a WordPress Site with the Duplicator Plugin

WordPress has a lot of migration systems. We’ve had lots of good experiences with All-in-One WP Migration, some people swear by WP Migrate DB Pro, and others are partial to WP-CLI’s terminal-based systems. On top of these options, I’ve recently found a plugin I really like called Duplicator that approaches WordPress migrations in a unique way. Here’s a guide on how to use Duplicator, and what sets it apart.What Makes the Duplicator Plugin a Great WordPress Migration ToolWith the Duplicator plugin, you don’t need WordPress to be...

nometech

WordPress Facebook Widget: Add FB to Your Sidebar

Many people and businesses are proud of their Facebook page. They want to be able to market all the great reviews, posts, etc that they’ve earn on Facebook.  WordPress does many things for you, so surely it has a pretty easy way to get a Facebook widget. And you looked and it wasn’t there. So what do you do? How do you show off a Facebook page in WordPress?For times like this, seasoned WP Devs will think they need something like a “facebook wordpress plugin” or a “facebook wordpress widget“. It’s that latter one we’ll explain...

nometech

Simple WP_Query Example: Using a Shortcode to Display Post Titles

In this video and text Quick Guide, we present a basic use of WP_Query inside a WordPress shortcode, to show the post titles of the five most recently published posts. We’ve designed this Quick Guide to be a simple intro to using WP_Query in general, as well as to using WP_Query to display post titles and other post data inside a shortcode specifically.Here’s a video guide to this use of WP_Query in a shortcode:And here’s a text guide to the information in the video:How to Create a Custom WP_Query in a WordPress ShortcodeThe steps are as...