Sometimes when you start MAMP, the mysql server refuses to start up. Solution 1 Sometimes this is because it is already running from a previous session. To fix that, quit MAMP, open up Terminal and run the following command: killall -9 mysqld Then restart MAMP. Solution 2 If that doesn’t work, here’s another fix that […]
Category: WordPress
For this exercise, please download the starter files and the screenshots collection. These are big files, so the download might be a bit longer than that for most of the files on this site. Inside the starter files archive is a Duplicator package and installer. Install that in a new WordPress database. Then go […]
Other Values If enqueueing scripts (or local stylesheets), it is a bit more complicated, but it’s learnable. All URLs in WordPress are absolute, not relative, so when the theme is installed at a new domain, WordPress needs to figure out the path to resources, starting with the https://domain.com/ part. If you look at the script […]
We now have a workaround for the Langara network-related issues with respect to MAMP and WordPress. Specifically, we have normally had to download themes or plugins manually—and then install them by copying them to the wp-content/themes or wp-content/plugins folders. Now, however, with a small edit to a configuration file in each site we’re working on […]
WordPress Major Plugin Exercise
In this exercise, please make a new WordPress installation in MAMP and install the following plugins: Contact Form 7 Polylang YARPP (Yet Another Related Posts Plugin) Contact Form 7 Make a page called Contact and put in it a Contact Form 7 form with the following features: The form is put into DEMO MODE (so you’re […]
On your home computer (Mac or Windows), download and install a testing environment. If you want to use exactly the same setup as we do in class, download MAMP. It is available for Mac and Windows. MAMP is quite reliable, particularly on Mac. On Windows, it’s less reliable. If you have trouble with it, try […]
MAMP: Setting up a Test Server
If you’re going to do any WordPress work— indeed, even if you want to just test plugins, themes, etc before deploying them to a production site—it will serve you well to learn how to set up a testing environment on your own computer. That way, you can experiment or test things without worrying about breaking […]
WordPress Security 2017
Reading the following articles will give you a good introduction to WordPress security: YOAST: WP Security in a Few Easy Steps: https://yoast.com/wordpress-security/#wpsecuritykeys WP-CONFIG Security Keys ( WP Beginner ) https://www.wpbeginner.com/beginners-guide/what-why-and-hows-of-wordpress-security-keys/ HOW TO REMOVE GOOGLE BLACKLIST WARNING ( Succuri ) https://sucuri.net/guides/how-to-remove-google-blacklist-warning CODEX: HARDENING WORDPRESS https://codex.wordpress.org/Hardening_WordPress ULTIMATE GUIDE TO WORDPRESS SECURITY (wpmudev) https://premium.wpmudev.org/blog/ultimate-guide-wordpress-security/?utm_expid=3606929-108.O6f5ypXuTg-XPCV9sY1yrw.0&utm_referrer=https%3A%2F%2Fwww.google.ca%2F
So we have constructed a front-page template that outputs our content in two defined loops rather than one “reverse-chronological” default loop. But when we test, we see that too much content is being output in each article. If we look at the screenshot on the page about the front-page template, we will see that we […]
Moving A WordPress Site
There are a number of scenarios under which you might need to move a WordPress installation. a changed domain changed hosting creating a testing environment moving a site created in a testing environment to a live server The easiest way to move a site is to use the Export / Import functionality available in the Tools section […]