Add New Event in The Events Calendar WordPress Plugin

The Events Calendar is an excellent WordPress plugin for displaying events on your WordPress website. If you’re wondering how to add a new event to show up on your events calendar, look no more! Simply follow these simple steps, and you will be adding new events to your WordPress website’s event calendar in no time.

Step 1: Add New Event

Assuming you are already logged in to WordPress and have The Events Calendar installed, simply hover over Events (on the left) and click Add New.

Events Manager Add New Event

Step 2: Enter in Event Details

Step 2a: Enter in Event Title

The Events Calendar New Event Title

Step 2b: Upload a Picture

Click Add Media to upload and add a picture for your event. Go ahead and upload a picture from your computer to use.

The Events Calendar Add Picture

Step 2c: Event Time & Date

Select your event’s Start/End Date & Time.

The Events Calendar Time & Date

Step 2d: Event Location

If someone else set up the website for you, chances are you may already have a saved venue. In this case, to the right of Use Saved Venue, select the name of the venue that has been previously saved (unless you want to add a new one).

The Events Calendar Location Use Saved Venue

Step 2e: Publish Event

If you have any other details you’d like to enter in for your event, go ahead and do so. Otherwise, scroll up and click Publish.

The Events Calendar Publish Event

Congratulations! You have successfully added an event using The Events Calendar. To view your newly created event, click View Event (at the top of the screen).

The Events Calendar View Event

nGinx/PHP not Upgrading – Fix Update Errors

When trying to update/upgrade nGinx or PHP by typing apt-get update && apt-get upgrade, do you get some error like the following error or any other error?

dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)

If so, try typing in these three lines of code, one at a time, and hopefully, you’ll be able to upgrade nGinx/PHP:

apt-get clean
apt-get dist-upgrade
apt-get -f install


These two commands may provide additional information, used for troubleshooting any nGinx update/upgrade errors or issues:

which nginx
dpkg -L nginx

Run Cron Job as www-data or Different User

To run a cron job as a specific user or www-data, follow these simple steps.

Type in: nano /etc/crontab

Then, add your cron job at the end of this file with the user’s name before the command to run. For example:

0 0-3,5-23 * * * www-data /usr/bin/php /var/website/script.php >> /var/website/log/`date "+\%Y-\%m-\%d.\%H-\%M-\%S"`.script.cron.txt 2>&1

The above cron job runs hourly except at 4am, and is run by www-data. It also saves output to a log file (named based on the current time) and disables email alerts sent to you upon cron execution.

Fix: WooCommerce Suddenly Gone after WooCommerce Update

If you find that WooCommerce is suddenly gone from your website just after an update to WooCommerce, and you’ve ruled out hacking or any other possibilities, try this quick fix:

  1. Log in to WordPress and go to Plugins -> Add New
  2. Search for WooCommerce
  3. When WooCommerce appears within the search results, click Install Now, next to its name
  4. After the plugin has installed, choose to activate the plugin immediately

Your WooCommerce website should now be working normally again.

Fixing WordPress Website Asking to Install Again

There could be many reasons for getting the install screen on an existing WordPress website. If you have already confirmed your wp-config.php file is intact and your database isn’t corrupt, it might be due to an error like:

WordPress database error: [Can’t open file errno: 24)]

If this is the case, to fix this, you will need to add the following code to the mysql.conf file that defines the upstart service. It is located in /etc/init/mysql.conf. Add the following lines before the pre-start block:

# NB: Upstart scripts do not respect
# /etc/security/limits.conf, so the open-file limits
# settings need to be applied here.
limit nofile 32000 32000
limit nproc 32000 32000

PHP – Stop Script Execution After Specific Time Limit

Do you have a long-running PHP script or just some PHP script you want to ensure doesn’t exceed a certain time limit, while exiting the script safely? Simply use the following function in your script. This is an example of an entire working script. Ordinarily, this script would run for 30 seconds, but thanks to this function, it will exit after 3 seconds.


$starttime = time();
$runtime = "3"; // How long script should run (in seconds)

for($x=1; $x <= 30; $x++)
    echo "Second $x of script has passed!<br>";
    $breaktimer = breaktimer($starttime, $runtime);
    if($breaktimer == "1") { echo "The script has been running for $runtime seconds. Time to stop the script!"; break; }

function breaktimer($starttime, $runtime)
    $breaktimer = "0";
    $now = time()-$starttime; // Calculate how many seconds script has been running for until now
    if ($now >= $runtime) // Return 1 if script has run for allotted run time
        $breaktimer = "1";
    return $breaktimer;



Add New Author in Special WordPress Connections Directory Listing

You may already know how to add an ordinary author in WooCommerce, but what if you want something more? Something like a special showcase or categories for different authors? Search no further! What you want is Connections, the business directory plugin for WordPress. But once you have Connections, how do you add and edit authors? Simple! Just follow these easy steps!

Step 1: Add Entry in Connections

Assuming you are already logged in to WordPress and have Connections installed, simply hover over Connections (on the bottom left) and click Add Entry.

Add New WordPress Connections Directory Entry

Step 2: Enter in Author’s Details

Step 2a: Enter in Author’s Details

Enter in any details you’d like to display for this author. Enter in the First Name and Last Name:

Connections Directory Add Entry Author Names

Step 2b: Upload Author’s Picture

If you’d like to upload the author’s picture, below where it says Image, click Browse and select the author’s picture from your computer.

WordPress Upload Author Picture Tutorial

Upload Author Picture WordPress Connections

WordPress Upload Author Picture Selected

Step 2c: Select Author Category/Categories

Be sure to select the category this author belongs in. You will find this on the right side. We’ll designate this author as one of the Premium Authors. Simply click the checkbox next to Premium Authors. Actually, everyone knows Mark Twain, so let’s just add him in to every category! Do this by checking checkbox next to each category name.

Select WordPress Connections Categories

Step 2d: Enter in Author’s Social Media Links

It’s time to add our author’s social media network links. Simply scroll down until you get to the Social Media IDs section and click Add Social Media ID. Then select Facebook and enter in the author’s full URL to their Facebook page (e.g.

Add Social Media IDs WordPress Connections

Connections Business Directory Add Facebook

Connections Business Directory Facebook Tutorial

To add another social media network profile for this author, simply repeat these steps by again clicking Add Social Media ID, select Twitter, and enter in their full URL (not just their handle) to their Twitter page (e.g.

Connections Business Directory Twitter Tutorial

Connections Business Directory Add Twitter Tutorial

Repeat this process for however many social media profile links you’d like to add for this particular author.

Step 2e: Enter in Author’s Website Links

Under the Links section, click Add Link. Next to Title, enter in the full URL to the author’s website (e.g. Enter in the same thing in the box to the right of URL (i.e. Since this is a link to a website other than our own, let’s make sure when someone clicks on the link, it will open a new tab/window. We do this by simply clicking the drop down arrow next to Target and then selecting New Window.

Add WordPress Connections Directory Link

Add Author Link WordPress Connections

Since we added this author, Mark Twain, in WooCommerce, and are selling his books, let’s go ahead and add a direct link to his books on our website. To do so, simply click a second time on Add Link. However, this time, for Type, let’s select Blog. In the Title box, let’s also do something different and type in Books. In the URL box, enter in the full direct link to the author on your website (e.g–get this by hovering over Products on the bottom left and then click on Author. Then, hover over Mark Twain and click View–this is the URL you need to copy here). For Target, it’s OK to keep it in the Same Window since anyone that clicks this link won’t be leaving our website.

Add Author Blog Link WordPress Connections

Link WordPress Connections Same Window

Step 2f: Enter in Author’s Short Biography

Let’s spice things up even further by adding a mini biography of our author. Scroll down to the Biographical Info section and enter in as much information as you’d like for this author.

Author Biographical Info WordPress Connections

Step 2g: Save!

Now that we’ve added all the information we’d like to about our author, let’s save it so we can check it out. To do so, simply scroll to the top and on the right click Add Entry. Wait a moment until it you see the message informing you it has successfully saved.

Save Entry WordPress Connections Directory

Success Entry has Been Added Connections

Step 2h: View Newly Created Author in Directory

Let’s check out how this author now looks on our website. To do so, simply hover over Connections (on the bottom left) and click Manage. Then, hover over the author’s name and then click View.

Connections Business Directory Manage Entries

View Connections WordPess Business Directory

Author Preview WordPress Connections Directory

Very nice! Lookin’ good!

Add New WooCommerce Book/Product Author Tutorial

Adding a new author in WooCommerce is easy. Just follow these steps to add a new author to WooCommerce in no time.

Step 1: Click on Authors

Assuming you have already logged in to WordPress, hover over Products on the bottom left and then click on Author. Here’s a screenshot:

WooCommerce Add New Product Author Tutorial

Step 2: Enter in Author’s Name

Now, simply enter in the author’s full name and click Add New Author (at the bottom) like so:

Add New Author WooCommerce WordPress.

That’s it! The new author has now been added. If you accidentally spelled the author’s name wrong, simply click on the author’s name, where you will then be allowed to correct any mistakes. Likewise, you may delete the author by hovering over the author’s name and then clicking Delete.

New WooCommerce Author Added

Easy, right?

How to Log in to Your WordPress Blog/Website

Logging in to your new WordPress website is easy. It’s so easy that it only takes a matter of seconds! Simply follow these easy steps.

Step 1: Go to WordPress Administration URL

The first step is going to your WordPress administration URL. If your website is, then your login URL would be Simply substitute with your domain name.

Step 2: Log in to WordPress!

Now, simply log in to WordPress using your username and password and click “Log in” just as you can see in the screenshot/picture below (use your own username, though, rather than the example username I’ve used below):

Logging in to WordPress Beginner Tutorial

Congratulations! You have now logged in to WordPress! You are now one step closer to having an amazing website.