fbpx

You do not have EventON main plugin, which is REQUIRED.

I recently came across a frustrating error whilst adding the Event On events calendar plugin and the Event On Weekly View add on to a client’s WordPress site. We purchased both the main Event On plugin and the Event On Weekly View add on. We were able to activate the main Event On plugin but…

Full Page Screenshots in Google Chrome Without Extensions

I have gotten sick of relying on Google Chrome Extensions that don’t work very well and are security risks. So, I wanted to figure out how to get a full page screenshot in Google Chrome without Chrome Extensions. This is much easier than I expected. Generating full page screenshots in Chrome without extensions is a…

Add Uploaded Files to Media Library WordPress

If you just uploaded a bunch of files to a WordPress site via FTP and don’t see those files in your WordPress media library, we know just what you want. You want to add the uploaded files to the media library in your WordPress dashboard! Adding uploaded files to your WordPress site’s Media Library involves…

Uncaught TypeError: Cannot read property ‘InlineLayout’ of undefined

This error, or any error mentioning cannot read property, typically gets thrown when you try to run a function or reference a property on an object that doesn’t exist. For example, I was using the Google Translate widget and ran the JavaScript code below: The following error: Uncaught TypeError: Cannot read property ‘InlineLayout’ of undefined…

Add Comments to YAML File

In order to add comments to a YAML file, you simply have to use the # (hashtag symbol) at the start of the line. For example, below is an example of one commented line in a YAML file. How to Add Block Comments to YAML File? If you would like to comment multiple lines in…

Get first characters of a string in PHP

There are two primary ways to get the first characters of a string in PHP. For example, let’s say we have a description of an article but we want to trim it down to the first 30 characters to generate an excerpt. Option 1: substr To me, the easiest option is to use PHP’s substr…

Customize Style of Google Translate Widget

The following two resources proved to be very helpful in my quest to adjust the styling on the Google Translate Widget. I ended up using Resource 1 because it was closest to the style that my client wanted but the demo for Resource 2 makes it seem like it would be very easy to implement….

save_post_attachment not working

In short, save_post_attachment doesn’t work and, instead, you need to use edit_attachment. We ran into an issue when we built an input that would allow users to allow certain media files to be downloaded while prohibiting others. However, when we tried to hook into the save_post_custom_post_type action, by adding the WordPress function below, to update…

Difference between WordPress Options and WordPress Postmeta

What are WordPress options settings? These are global settings. You can access these options outside of the post loop and without the need for a post id. The important thing to note is that these can be overwritten by other plugins so make sure to name your options something that is unlikely to be overwritten…