Using PHP to Show Google My Business Hours on Website

Keeping your Google My Business opening hours up to date is helpful to your customers, and we wanted to show a customer’s hours on their Joomla! website. We didn’t find and extension to help us with this, but did find a response in StackExchange. The code is straight forward; however, you have to have “billing” enabled in your Google Developers Console. We used a Gift Credit Card to get the account started.

Getting Started:

  • Google API Key: Create a project in the Google API Console and enable the Places API.
  • Enable Billing: The Places API requires an active billing account.
  • Place ID: Find your business’s Place ID using the Google Place ID Finder. 

Here is the code we used.

<?php
// Define your API Key and Place ID
define('GOOGLE_API_KEY', 'YOUR_API_KEY');
define('GOOGLE_PLACE_ID', 'YOUR_PLACE_ID');

// API endpoint URL for place details, requesting only opening hours
$url = 'https://maps.googleapis.com' . GOOGLE_PLACE_ID . '&fields=opening_hours&key=' . GOOGLE_API_KEY;

// Fetch the data from the Google Places API
$hours_raw = @file_get_contents($url);

if (!empty($hours_raw)) {
    $hours_json = json_decode($hours_raw, true);

    // Check if the request was successful and hours are available
    if (isset($hours_json['result']['opening_hours']['weekday_text'])) {
        $business_hours = $hours_json['result']['opening_hours']['weekday_text'];

        // Display the hours in an HTML list
        echo '<h3>Business Hours:</h3>';
        echo '<ul>';
        foreach ($business_hours as $weekday_hours) {
            echo '<li>' . htmlspecialchars($weekday_hours) . '</li>';
        }
        echo '</ul>';
    } else {
        echo 'Could not retrieve business hours or hours are not specified.';
    }
} else {
    echo 'Error fetching data from the Google API. Check your API key and network connection.';
}
?>

Let us know if this helped you...

WordPress Gantry Hydrogen Don’t Show Categories or Author on Posts

We were working a WordPress website using Gantry’s Hydrogen theme, but we didn’t like the author and categories showing on the blog posts. It unfortunately took a few minutes to find out how to turn these off and we wanted to share the steps:

  • In the Gantry Theme click on the “Content” tab.
  • Find the “Categories Meta” section and toggle the on/off toggle to off.

It is that easy.

Let us know if this helped you…

Glinkx Domain Name Listing Scam

One of our customers got a letter to renew their domain listing from a company called Glinkx. Their domain was through Network Solutions, so this was a scam. There were asking for $284.00 for 1 year. They actually have a website with an online payment portal.

GLINKX – Glinkx Business Directory

We can’t stress it enough how important controlling your domain name is. It controls your website as well as email.

Let us know if this helped you…

Stranger Asked To Use Bathroom Tried to Hack Network

One of our fellow businesses told us that they recently had someone ask to use their bathroom, and they let him. A little while later they were wondering where he was. It turns the guy was in the bathroom with a laptop trying to gain access to their network. We have gotten a person come by one time to ask to use our bathroom, but that is not happening again.

Let us know if this helped you…

WordPress Colibri Move Section

We maintain a WordPress website for a customer that was built on the Colibri theme, and we struggled a bit to figure out how to move a section. Lots of page builders out there make it easy to click on a section and just drag-and-drop. This page builder is a little different. Here are the steps we take.

  • In the back-end of the website click on the “Edit with Colibri” next to the page

  • In the “Content” section on the left-hand side the sections are listed. Click on the stacked dots on the left of the section you want to move and drag-and-drop.


Let us know if this helped you…

Google My Business Opening Date Matters

We just dealt with a Google My Business (GMB) listing not being publicly viewable. We wrote Google to appeal and they said it might be the “opening date”. We had September 2000, which was correct. The customer told me the opened the 29th, so we changed it to September 29, 2000 and they were re-instated.

Your Google My Business listing is such a helpful tool for getting customers connected to businesses which is why it is important to keep it publicly visible. SCDIT addresses these issues quickly and cautiously. Google doesn’t give you many chances to get it right, so it has to be appealed properly.

Let us know if this helped you….

Windows Security Alert Attack

We had a customer almost get scammed by a browser window attack, so we are posting this warning. The customer has security training and questions everything, so the fact they almost got tricked it could happen to anyone. Here is how they almost got scammed.

  • User followed a link from Google’s search results for a manual on their new monitor.
  • They clicked on the “Table of Contents” of this webpage and got the sudden, alarm sounding popup window.
  • The customer has seen these before; however, this one really looked official. They called the number on the screen.
  • The person on the other end answered as Agent so-n-so a Microsoft Security Officer.
  • After sometime the person convinced our user to connect to their machine.
  • They used the “Run” command an ran a script that they said showed where the malware was installed. He said he was sending him to the FTC.
  • Another person answered the phone and took down the information.
  • They sent our customer a Nondisclosure Agreement, but the customer wouldn’t sign it. It was also on “Department of Justice” letterhead.
  • The attackers were insisting on protecting our customer’s money and was asking for the customer to cash some bonds.
  • The customer was smart and agreed to meet them in person, but only at a police station. I believe this is where the conversation ended. This was a smart move.

We are wiping the machine and reinstalling the operating system. Moral of the story is stay vigilant. The attacks are getting complex and convincing.

One of the best ways to overcome the initial browser attack it to hit “ctrl + alt + delete“, choose the “Task Manager“, and then select the browser and hit “End task“.

Let us know if this helped you…

Godaddy Hosting – Website Email Not Always Sending

We hit this issue often and it can be frustrating. You have a bunch of technical challenges:

  • Website Form Builder not working correctly
  • DNS Settings
  • Spam Filter / Firewall Settings

Our issue was the “auto-responderwasn’t getting sent. We would get the first email; however, the second notification email the “auto-responder” wasn’t allowed to send. We would get an email saying:

Message Dellivery Failure – Mail Delivery System” as the title, “mailer-daemon@secureserver.net“, and the “Reason: There was an error while attempting to deliver your message….”

In this particular instance the DNS was with Godaddy, the hosting was with Godaddy, but the email was O365. We added “include:secureserver.net” to our existing SPF record in the DNS. We got this setting from the following page.

https://www.godaddy.com/help/send-form-mail-using-an-smtp-relay-server-953

Let us know if this helped you…

Google Search Console Drop in Impressions Mid September

We noticed a huge drop in Impressions in the Google Search Console in mid-September 2025 that caused us concern. We have been seeing a steady rise in impressions throughout the year as well as clicks. We looked at the console, saw a huge drop in impressions, and our stomachs sank. Well this may not be all bad.

First of all the “clicks” hadn’t gone down. That is really what we are after. Things can’t be all bad, but what is really going on. Well there are a bunch of posts regarding this change. The following article we came across explains the details well

https://www.getpassionfruit.com/blog/google-s-september-shake-up-why-your-blog-rankings-dropped-and-how-to-recover

They claim that bots pulling Google results by the amount of 100 results versus the 10 at a time it normally does. This was skewing the impressions but not killing the clicks. Google Overview is taking from some of the clicks; however, the article claims AI scraping your websites content to generate the Overview counts as impression! Not a total loss.

Let us know if this helped you…

Translate »