Tag

wordpress Archives - Brisbane Digital

wordpress Archives - Brisbane Digital

WordPress: Use shortcodes to display the time in any city

By | Tutorial, Wordpress

Recently on the new version of our agency website, we wanted to showcase the time in the footer of both of our offices, at different ends of the planet and completely different timezones; Brisbane, Australia and Warsaw, Poland.

Our site is built on WordPress and as we know, WordPress has a date function inbuilt that let’s you specify both the date format and time format, which then can be added to template files via the “get_date” function. The only problem with that is we can only specify one time; which is essentially the time our hosting server is using. We wanted to then show a second time for another city.

Wordpress time and date format

WordPress doesn’t have an option to do this but using shortcodes and some PHP, here’s the solution we are currently using on our site’s footer.

Brisbane Digital Footer

To achieve this, we’ve added 2 shortcodes to our functions.php file in our theme template. The first shortcode displays the time of our site using Warsaw local (GMT+2). The second, the time of our Brisbane office (GMT+10). To set the correct time we’ve used the PHP timezone function which you can input your own details to display any timezone worldwide.

To get the correct date output, we use “g:i a” which gives us a time like 10:52pm. To find a date format setting to suit your project use the WordPress codex on the formatting of date and time.

Now, you can add the shortcode right in to any WordPress page, post or widget and get the time output. The shortcodes to use are:

  • [date1]
  • [date2]

With a little bit of CSS styling using a class around the shortcodes you can format the output to any style you like. Or, if you’d like to just simply add it straight to a WordPress template file rather than use a shortcode, here’s an example of a snippet to use in your footer replacing a default widget input:

WAW

Let us know how you’re implementing the WordPress time or PHP time on your site.

8 New WordPress Plugins to SUPERCHARGE your Search Game.

By | Wordpress

Is it just me or is search one of the most least thought of feature of a new WordPress website design? With more and more eCommerce websites popping up, search is more relevant than ever and helps your customers find the exact product they are looking after. Straight out of the box, WordPress search uses the links within categories, tags and featured posts to return a search query, which is fine if you have a small website, but terrible is you have a ton of content or a shop with 100’s of products. As a start, the default WordPress search function isn’t flexible; what can we do about it?

We’ve found 8 of the best WordPress search plugins to SUPERCHARGE your website’s search function.

Instant Search & Suggest

Like the same suggests, Instant Search & Suggest will return a search query by just typing a few letters in to the search box. It returns suggestions for related tags, categories or titles. This plugin needs very minimal configuration to setup and will work with any theme.

search plugins 1

Jarvis

With the click of the / button, the Jarvis search bar will appear, enter your search term and Jarvis will suggest content related to your keyword. You can then arrow up/down the list to navigate through the results, pressing enter to view a result.

search plugins 2

WP Extended Search

With WP Extended Search, you can set the options to base search results on Post Meta, Taxonomies (tags and categories), Post Types (page, posts and media) as well as the author name. It also has the power to customise SQL relation between search terms; it’s a very powerful search plugin.

search plugins

Auto Search Suggestion

Like the name says, automatic search suggestions which will speed up your search. For WP admins, inside the dashboard this plugin will let you search any content from post, page or custom-post-type; all in one place!

search plugins

WP Lucky Search

You know the “I’m feeling lucky” button on Google? Well this is exactly that, but for your website. On click, your visitor will be redirected to a random post based on the search query. Very fun!

search plugins

DuckDuckGo Search Widget

Feel like you’re being tracked everywhere you go? DuckDuckGo is a search engine that won’t track you. If you run a website that encourages untrackable searching and browsing, you can now get this functionality on your own website. This plugin adds DuckDuckGo as a widget which works the same as the WordPress default search but uses the DuckDuckGo engine to search your site.

search plugins

Curated Search

Curated Search allows you to pin search results to specific keywords. Ever wanted that ‘Top 5 Sea Horse’ blog post to appear when someone searches for ‘sea life’ on your blog? Now you can pin it to that search result, giving you the ability to create search results for specific typos or keywords not mentioned in your content. You can also redirect search terms or make searches contextual. As well as this, you can hide specific content or limit the search results for a query. It’s a very versatile plugin.

search plugins

Quick Search Widget

This plugin allows your visitors to get search results immediately on keypress, without having to reload the page, making the search experience faster and easier. The search results are populated from posts, pages and/or products.

search plugins

WordPress Showcase. The perfect way to get an SEO spike.

By | Articles, Promotion

I can’t say I’m one of the people who regularly visits WordPress.org – who actually does? (unless you’re about to download the latest version for a new project) However I was digging through the forums recently and discovered they now have a Showcase of WordPress websites there. Seeing as its relatively new, I figure they haven’t been berated with 1000’s of submissions a day like any good CSS gallery usually probably is.

So I decided to send in my personal windsurfing website I designed: www.seanobrien.com.au. Low and behold, I had an incredible spike in traffic on the first day it popped up, peaking at around 6,000 unique hits in the first 24 hour period. Considering my website is targetted mainly towards the windsurfing world and for my sponsors within the windsurfing world (a very niche group) – this was great publicity and I’d recommend to anyone to submit their new website to the Showcase. Albeit the site needs to be pretty nice to get selected …

Checkout seanobrien.com.au on the WordPress Showcase.

The WordPress Showcase is a really great resource for finding out who is using WordPress, what they’ve done with their site and of course to get some inspiration on your next design. WordPress is starting to become a major player in the CMS scene and more and more big brands, celebrities and people are starting to use the platform over Joomla or Ghost or other blogging platforms.