Wordpress shortcode or plugin for current time
-
In the footer of my WP site at http://www.strikemodels.com/, I have
"Questions? Call us at xxx-xxx-xxxx 10:00 am to 8:00 pm Pacific time or email [address]"
I've searched, but haven't easily found a shortcode where I can insert the current time for my time zone in this footer statement. Does anyone know if such a thing exists?
The Do Not Disturb function on the iPhone has been a big help, but we've still had calls at three in the morning from someone in Australia on New Year's Day who didn't know how to look up time differences online.
-
Thanks everyone! Will check these out when I get a chance, prepping for SMX West at the moment.
-
Can't you use this function:
-
It wasn't me either.
$thetimeis = getdate(time()); $thehour = $thetimeis['hours']; $theminute = $thetimeis['minutes']; $thesecond = $thetimeis['seconds'];
if($thehour > 12){ $thehour = $thehour - 12; $dn = "PM";
}else{ $dn = "AM";
}echo "$thehour: $theminute:$thesecond$dn"; ?>
-
Hi Kerry,
I'm no expert at this solution, but I found this link which might help with your situation - http://botcrawl.com/display-date-and-time-on-wordpress-using-php-shortcodes/
They basically use php functions so that it shows your sites server actual time and date rather than the users.
BTW that person from Australia wasn't me
Hope this helps.
Regards,
Vahe
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Wordpress Tag Organization Tips
Curious if anyone has some good examples of ways to organize your WordPress tags without making your sidebar a football field long and hard to navigate. My blog is https://karmahill.com/blog and I could use some ideas. We have main categories of photo shoot types, for example, "Couples", located on the sidebar. We want to add tags to go with those main categories for further categorization and user experience example: Couples Engagement Proposals Honeymoon Maternity My question is, do I need to make "tag" pages for those posts to reside on or is their another way to get it done with less work, that is much faster? I don't want to have to make 30 tag pages or is that just what you have to do?
Web Design | | photoseo13 -
What is the Estimated Time for SERP Rankings to Replenish after a Site Redesign?
Hello Fellow Moz'ers, My company's website, www.1099pro.com, is currently OLD and not mobile-friendly! However, we rank #1 for out most important keywords and don't want to lose that ranking. I've recently redesigned our site, currently in testing, to use the same standard desktop pages but to also have responsive, mobile friendly, pages for different view ports. My question is if anyone knows an estimated time frame that search engines (mainly Google) takes to re-crawl the site and restore SERP rankings to their previous levels? The reason is because we are HIGHLY seasonal and if we are not back at our top rankings by early December, at latest (November would be better), then we stand the chance to lose a considerable amount of traffic/revenue. -The Unenlightened One
Web Design | | Stew2220 -
Avg Page Load Time Increase After Responsive Web Design
The Avg. Page Load Time has been steadily increasing after our website went responsive. What could have cause this?
Web Design | | JMSCC1 -
How to deal with 100s of Wordpress media link pages, containing images, but zero content
I have a Wordpress website with well over 1000 posts. I had a SEO audit done and it was highlighted that every post had clickable images. If you click the image a new webpage opens containing nothing but the image. I was told these image pages with zero content are very bad for SEO and that I should get them removed. I have contacted several Wordpress specialists on People Per Hour. I have basically been offered two solutions. 1 - redirect all these image pages to a 404, so they are not found by Google 2 - redirect each image page to the main post page the image is from. What's my best option here? Is there a better option? I don't care if these pages remain, providing they are not crawled by Google and classified as spam etc. All suggestions greatly received!
Web Design | | xpers0 -
Should our Wordpress blog have the same theme as Magento store?
We installed the Magento 'Aheadworks' extension for our blog but it's quite limited as to what blogging capabilities it has. We are now considering integrating Wordpress for our new blog, but keeping both on the same domain to increase the domain authority. My question is, should we keep the same theme throughout? The blog should be informative and not sales based, so we was thinking of ditching the whole theme for the blog and not having our category navigation bar. Yes we can still have internal linking which may drive traffic from the blog to the web store. We have been recommended the Wordpress Integration by Fishpig but I understand this carries through the Magento theme so I'm not sure exactly how it works. Could Wordpress plugins cause issues with our Magento store or shouldn't we be worried about this?
Web Design | | Jseddon920 -
Wordpress Custom Permalinks Plugin Issue
Hello, I installed this plugin and I'm having trouble making it work. I'm new to WordPress so was hoping someone can help me out. I'm looking to set up the following pages for example
Web Design | | ec1976
http://testsite.azurewebsites.net/Services/Services1
http://testsite.azurewebsites.net/Services/Services2 I do the following steps Add New Page Enter the following title "Services1" Enter the following text in the Permalink textbox "Services/Services1" replacing the default text "?page_id=140" Then I publish the page. This automatically updates the "Custom Fields" section below. The name is set to "custom_permalink" and the value is set to "Services/Services1". Then I "view page" but get a 404 error. The url is "http://testsite.azurewebsites.net/Services/Services1" Some additional info 1. WordPress version 9.8.3 Settings - Permalinks is set to "post name" Custom Permalinks version 0.7.18 Any help would be greatly appreciated. Thanks0 -
Is it necessary to Remove 301 redirects from Wordpress after removing the 404 url from Google Webmaster?
There were many 404 urls in my site found by Google Webmaster. I've redirected these urls to the relevant urls with 301 redirect in wordpress. After that I removed these 404 urls from Google Index through Webmaster. "Should I cleanup these 301 redirects from Wordpress or not? ". Help Needed.
Web Design | | SangeetaC0 -
Wordpress or custom built website?
Hello fellow mozzers, Hope you are all well. I am looking to get a website done and I am struggling to decide whether to get a custom build website site done or a website built on the WordPress platform. Would you be able to share your experiences and advice/suggestions on what you would use, and why? (pros and cons, etc.) Thanks in advance. Kind Regards
Web Design | | JonathanRolande0