Currently browsing category: WordPress

WordPress WP-CLI PHP Notice: Undefined index: HTTP_HOST

I manage a ton of websites. Some servers house several separate installations, which makes it cumbersome to have to login through the web to manage each site. (No multi-site setups.) I decided last weekend after attending my third WordCamp ATL (#WCATL), i’d start to actually utilize wp-cli on a daily basis now that it’s matured and powerful. Heck, i even thought about writing an ebook on using wp-cli. Stay tuned. Anyway, to the issue at […]

Continue Reading …

WordPress + ACF + Instagram Feed without API

With the the privacy climate these days — see Facebook’s woes with Cambridge Analytica — Instagram has finally enforced the API changes and limits they announced in January. After riding dirty with the feeds for the past few months (despite the summertime deadline), two sites’ feeds stopped working last week. Crap. I needed a quick fix; something easy to implement, and preferably without having to use the API. Signing up again or changing keys, client IDs, client […]

Continue Reading …

WordPress Developers: to use functions.php or a functionality plugin?

I first learned of the functionality plugin vs functions.php way of thinking either from a StackOverflow comment while searching for some elusive WP answer or via Dave Clements’s posts: Create Functions Plugin and Putting Things Where They Belong. Not sure it matters, but i like to attribute inspiration. Anywhoo… The more i’ve tackled WordPress projects, especially while working in-parallel on a few projects or back-to-back with little time to rest, i’ve come to look for more efficient […]

Continue Reading …

BackWPup WordPress plugin – Error when running email backup job

Looking for an easy WordPress backup solution, i decided to give several plugins a try. One of them was BackWPup. While testing it out, i ran into an issue trying to send backups via email. It was due to the DMARC policy on my domain. Below is an email i received (in Spam) when attempting to do the email backup option. Quick trick to circumvent this issue is to set the “From” address in the […]

Continue Reading …

WordPress Custom Shortcode Not Displaying or Breaks Page

So, i’m working locally on this site, tweaking my Wikipedia User Contributions Display plugin, and i noticed that some tweaks i pushed live are actually working fine, but locally they’re not (kinda backwards, i know). Heck, anything after the plugin shortcode doesn’t display–it actually breaks the site (footer scripts and other code fails to run). I google for some fix but nothing concrete. I spot something about PHP maybe being the culprit, but no one […]

Continue Reading …

Removing article:tag from Yoast’s WordPress SEO plugin

Scroll down for the code since i’m a little long-winded on this post. Ye’ve been warned. Yoast’s WordPress SEO plugin is awesome at getting you quickly setup with adding Twitter Cards and Facebook OpenGraph data to your website. But over the latest iterations it’s either added superfluous meta data or removed the options to toggle what is or isn’t shown (version 7.1 is a big culprit of it, which is currently running on this site, […]

Continue Reading …

WordPress activity log plugin: Stream

Some backstory: i’ve been developing several WordPress projects back-to-back or in parallel in the last few months, and once they’re ready to transfer from local dev environment to staging server, the content provided to me from clients or coworkers usually becomes stale, needing to be updated with increased frequency or in sporadic bulk edits, which would keep my local database annoyingly out of sync with the staging database. It was a clusterfuck — for lack […]

Continue Reading …

WordPress FTP Error when upgrading WordPress core or plugin

You go to update a plugin or the latest security patch for WordPress, but when you click update you’re prompted for FTP credentials. It can be frustrating and annoying, but it has (typically) a simple fix. This WordPress FTP error is frustration at its peak. You’ll need access to your wp-config.php file and ssh access to your server.  Two steps: Apache server — via terminal/command line run sudo chown -Rf www-data:www-data /var/www/html (or could just be /var/www; […]

Continue Reading …

WordPress: You Changed the Site Address URL and now Blog Posts are Blank!

So you installed WordPress in a sub-directory because you want your URL to still be simple, such as installed here www.mydomain.com/wordpress-installed-here/ yet visitors will see www.mydomain.com when navigating your site, but after doing so your blog posts and pages show up as a white blank page. Not good. Luckily, there’s a simple fix! Just update your .htaccess file in the main directory of where your site is located. I’ve put example code for the .htaccess […]

Continue Reading …

WordPress unknown character set utf8mb4 error

How to fix this “WordPress database error: [Unknown character set: ‘utf8mb4’] ~” error. Simply change “utf8mb4” to “utf8” in the Database Charset setting in your wp-config.php file. Voila. Update (2018.02.01): Do NOT follow any of that above. You’re going to want to keep the ‘utf8mb4’ under Database Charset in your wp-config.php file, but you’ll need to upgrade your WordPress database. You can do so by navigating here YOUR_WP_INSTALL_FOLDER/wp-admin/includes/upgrade.php. For reasons why, read this from WordPress […]

Continue Reading …