Neil Matthews

Blog

  • Can Your Database Handle Multiple Languages?

    One of the problems I have come across when building multi language website are database configurations that cannot support the new languages people are planning to add.

    In this post I want to give you a case study of a site that could not support Chinese and how I fixed it.

    The English and Chinese Site

    I was called in by a client to configure a site that would work in English and Chinese    All was going fine, the tools I use to host multiple languages were in, I was ready to start adding content and multiple menus when we found our problem …

    The  Problem

    Whenever we added Chinese content into the site, instead of displaying the correct characters, it displayed a line of question marks instead ??????????

    The Cause

    When I looked under the hood I realised we were using database collation of a type that did not support double space characters such as Chinese or Japanese and would only allow us to use Latin character sets.  Which would be fine for English, French, German etc but no use for a more complex languages.

    The Solution

    We needed to change the character set of your database from something that will not support double character languages like Chinese to a character set that will, always my preferred and default selection is utf8.

    The majority of sites I work with use MYSQL so I’m assuming that is the case with your multi language site.  You can change your You can do this through phpmyadmin very simply by opening the database in question  going to the general settings and changing your database collation (see screen dump).

    Click for full sized image
    Click for full sized image

    Please backup your database before you do anything like this – you have been warned.

    As a matter of course I set-up all new sites with a collation of UTF8.

    Can Your Database Handle Multiple Languages?

    The quick test is to cut and paste this simplified Chinese sentence into your site (for those interested I think it says can  your database handle multiple languages)

    你的数据库可以处理多种语言

    If it shows up okay then you are good to go, if it shows ???????? you have a database issue.

    Wrap Up

    Often working with multiple languages throws up unexpected issues we don’t expect, if you are used to working with Latin languages this is an issue you would never expect.

    If you need help with your multi language build, please contact me to get a no obligation quote.

    Photo Credit: darkmatter via Compfight cc

  • Post Without Sidebar

    Post Without Sidebar

    Morbi sagittis, sem quis lacinia faucibus, orci ipsum gravida tortor, vel interdum mi sapien ut justo. Nulla varius consequat magna, id molestie ipsum volutpat quis. Suspendisse consectetur fringilla luctus. Fusce id mi diam, non ornare orci. Pellentesque ipsum erat, facilisis ut venenatis eu, sodales vel dolor. Nunc volutpat odio sit amet, consectetur adipiscing elit.

    Nulla varius consequat magna, id molestie ipsum volutpat quis. Suspendisse consectetur fringilla luctus. Fusce id mi diam, non ornare orci. Pellentesque ipsum erat, facilisis ut venenatis eu, sodales vel dolor. Nunc volutpat odio sit amet, consectetur adipiscing.

    Morbi sagittis, sem quis lacinia faucibus, orci ipsum gravida tortor, vel interdum mi sapien ut justo. Nulla varius consequat magna, id molestie ipsum volutpat quis. Suspendisse consectetur fringilla luctus. Fusce id mi diam, non ornare orci. Pellentesque ipsum erat, facilisis ut venenatis eu, sodales vel dolor.

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque dictum tincidunt enim, vitae eleifend magna bibendum in. Ut at nunc vitae odio consequat euismod eget eget nunc. Nunc at enim placerat, sodales nisl ac, posuere ipsum. Aliquam vel justo sed nisl vulputate sodales. Donec ac mattis dui. Suspendisse ultricies nulla vel pellentesque imperdiet.

    Maecenas eget tincidunt neque, quis pellentesque ante. Nulla pharetra nulla at euismod tristique. In hac habitasse platea dictumst. Praesent laoreet, eros nec laoreet ullamcorper, neque orci molestie diam, quis facilisis arcu arcu at est. Ut et sem pharetra, eleifend purus quis, vehicula leo.

    Etiam nec erat tellus. Mauris et vulputate velit. Nulla varius consequat magna, id molestie ipsum volutpat quis. Suspendisse consectetur fringilla luctus. Fusce id mi diam, non ornare orci. Pellentesque ipsum erat, facilisis ut venenatis eu, sodales vel dolor. Nunc volutpat odio sit amet, consectetur adipiscing elit.

  • Webinar Replay

    A big thank you to everyone who joined the live event on Tuesday, if you were unable to attend, here is the replay.

    The Replay

    [leadplayer_vid id=”516EE2055C35A”]

    Links Mentioned In The Webinar

    • wpml.webployglotcom
    • http://codex.wordpress.org/Right-to-Left_Language_Support
    • translate.google.com
    • dev.wpdude.com

    Download Slides

    Presentation slides

     
    Photo Credit: alshepmcr via Compfight cc

  • 5 Little Used WordPress Widgets that Your Blog Should Have

    5 Little Used WordPress Widgets that Your Blog Should Have

    This is a guest post by Ken Myers, see Ken’s Bio at the of this post

    WordPress is one of the most common and versatile content management systems on the Internet. It is a way to publish your content very quickly and has the ability to utilize a great range of plugins in order to make the experience for the visitor a good one. However, there are many WordPress sites across the Internet that don’t fully explore the possibilities this CMS has to offer. Many plugins and widgets go unnoticed that could greatly increase the efficiency of your site.

    1. FreeBlogApps.com – The RSS reader can keep mobile device and computer system users apprised of new posts that are submitted on your website. FreelogApps.com helps you create those RSS feeds which can be added as a widget to your blog for all to see and install. The RSS reader is downloaded from the provided link and installed on the mobile device. This simple yet effective app is linked to the content on your website and provides a real-time update of the posts you or other authors submit.

    2. Pinterest Pinboard – Link your Pinterest imagery to your blog with the Pinterest Pinboard Widget. Any time a new pin is added to your Pinterest account, it is immediately reflected onto your webpage. Technically, the widget allows you to enter any Pinterest account in order to display his or her pins. The settings are simple as you can adjust how many thumbnails of the images the widget is wide and how many to show in a row. If your marketing plans include the use of Pinterest, this could be a viable method to link your blog visitors to your imagery for increased exposure.

    3. Top 10 – Display the most popular of content listed on your website. Visitors who found your
    site through search engines can be enticed to read other posts that are deemed as the most popular by your general audience. This widget will count the number of times a post is accessed and display the most popular. Settings can be altered to reduce the number of posts that are
    displayed and a timeline can be added for additional control.

    4. K-news – Providing a newsletter for your subscribers is made easy with the K-news WYSIWYG editor. Colors, images, themes, and more can be added to manually create newsletters or automatic creation from the system using the most recent blog posts. There are a
    variety of tools and settings that make K-news quite an amazing subscription widget to add to
    your WordPress website.

    5. Video Sidebar – This widget allows users to easily add video content from a wide range of websites including YouTube, Vimeo, MySpace, MetaCafe and more. Any video can be added as long as the information is correct such as YouTube’s video ID. Sizes can be modified within the ettings of this widget in order to maximize the sidebar widths of your blog. This widget could be used to further promote your own videos on your website.

    As plugins and widgets are developed quite often by the WordPress community, it is always in your best interest to keep a watchful eye on current developments. Although you may settle on a widget that is close to what you truly want, there may be someone out there who develops one that fits your theme and vision perfectly. Never settle when there is a possibility to increase your efficiency.

    Author Bio:

    Ken Myers is the founder of http://www.longhornleads.com/ & has learned over the years the importance of focusing on what the customer is looking for and literally serving it to them. He doesn’t try to create a need, instead he tries to satisfy the existing demand for information on products and services.

    Photo Credit: marfis75 via Compfight cc

  • Post With Trendy Fullwidth Preview

    Post With Trendy Fullwidth Preview

    Morbi sagittis, sem quis lacinia faucibus, orci ipsum gravida tortor, vel interdum mi sapien ut justo. Nulla varius consequat magna, id molestie ipsum volutpat quis. Suspendisse consectetur fringilla luctus. Fusce id mi diam, non ornare orci. Pellentesque ipsum erat, facilisis ut venenatis eu, sodales vel dolor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi sagittis, sem quis lacinia faucibus, orci ipsum gravida tortor, vel interdum mi sapien ut justo. Nulla varius consequat magna, id molestie ipsum volutpat quis. Suspendisse consectetur fringilla luctus. Fusce id mi diam, non ornare orci. Pellentesque ipsum erat, facilisis ut venenatis eu, sodales vel dolor.

    Cras fermentum purus sit amet metus posuere vestibulum. Cras ipsum libero, lacinia id nibh nec, vehicula facilisis tortor. Etiam sed tincidunt metus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Praesent ac dictum dui, eget imperdiet lacus. Suspendisse varius sapien sed justo ullamcorper dignissim nec vel erat. Pellentesque et eros scelerisque, pretium ex et, fringilla urna. Sed at interdum tortor, vel molestie orci. Etiam placerat tortor id odio ornare, vitae vulputate leo egestas. Donec tempus leo et ex luctus, in cursus ligula vulputate.

    Nam ligula nibh, lacinia ac accumsan at, congue eget dui. Cras a lorem tincidunt, laoreet orci nec, venenatis est. Pellentesque velit felis, dictum pulvinar laoreet quis, ornare id diam. Donec pharetra ante at augue dictum, vel tincidunt tortor luctus. Maecenas nisl sem, accumsan sit amet leo molestie, tristique tristique ex. Phasellus malesuada nibh eu diam sagittis sagittis. Sed dui est, laoreet eu ex non, fermentum interdum odio. Vestibulum consectetur rutrum metus, ut mattis nunc lacinia eget. Etiam id sem feugiat, auctor mi eget, aliquet eros. Pellentesque et ornare nulla. Sed sed convallis magna.

    Nulla et commodo elit, eget convallis mi. Donec congue sit amet est vel mollis. Vivamus scelerisque et sem vel volutpat. Integer quis enim a nunc tristique imperdiet vel in lorem. Sed nec eros at felis dapibus euismod nec at mi. Aliquam pharetra lacus malesuada, euismod magna quis, tempor augue. Aenean fermentum et est ac dictum. Curabitur cursus diam eu dolor elementum aliquam. Donec semper massa ac nunc ullamcorper, eget mattis ipsum tempor. Aliquam sollicitudin placerat leo nec elementum. Pellentesque vehicula velit consectetur sodales tempus. In vulputate quam nec tortor mollis, quis ullamcorper velit posuere.

  • Consulting As An Online Business Model

    Consulting As An Online Business Model

    I’m just about to launch a new consulting service and I thought I would write a little bit about the pros and cons of consulting as an on-line business model for anyone considering consulting as a profession.

    I’ve not done a lot of consulting in the past year or so due to the time pressures of building my team up, but now the team is in place and bedded in I have more time to offer these types of services and I’m really excited about getting back in the saddle.

    I love getting on skype with people and talking through their problems rather than being at the end of an email, but if you are considering this for your online business here are the pros and the cons.

    What Do I Mean By Online Consulting?

    On-line consulting rather than in person means getting on the phone / Skype and solving peoples problems with your own experience.

    Clients find you on-line via your website, become accustomed to your knowledge perhaps through blog posts or free reports.  They like what you have to say then realise they can go deeper with you via a consulting session where you can address their very specific issues for a fee.

    They book a slot and you get together and talk through your clients issues.

    There may be recordings or follow up reports.

    You bill the client, everyone is happy.

    The point is it is all done remotely, no onsite meetings  no need to change out of your Scooby Doo jammies (or is that just me?).

    Here’s how I like to conduct a consulting session:

    We book a slot that is good for us both, we call up using Skype.  I like skpe because I can make calls anywhere for free and  because it has screen sharing functions that we can use to look at your website and point at areas where there are problems.

    I record the session and create a PDF of any action points to pass to the client as a tangible record of our session (this also means you don’t need to take notes and can focus completely on our session).

    The Argument For The Pro Consulting Lobby

    Here are the plus points of consulting:

    Zero Barriers To Entry – you can setup a consulting practice in a few hours, I wrote about this in my post Recipe: The Three Hour Business there are few costs involved (website, domain name).

    As long as you have a Paypal account and Skype you can setup as a consultant.  It’s a great way to make your first online sales.

    Zero Time To Market – if you are creating products or other tangibles it can take lots of time.  For example if you decide to get into the ebook market, it takes time to write and edit your ebook, consulting takes no time, you can be earning as soon as your website is live.

    Easier Service Delivery – all you need to do is listen and answer your clients questions.   Getting knowledge out of your head is much easier than say, coding up a website.

    A quick caveat here, you must have the appropriate communication skills to convey complex knowledge you have gained over the years in a palatable and understandable manner.  If you are a techie that bibbles in binary, consulting may not be for you.

    No revisions – unlike say graphic design, once you have delivered an hours consulting that is probably it (apart from sending recordings, and associated reports).  A graphic designer may have to do endless rounds of revision and hand hold clients for a long time to earn their cash.  Consulting has none of that.

    And The Argument Against

    Here are the arguments against consulting:

    Consulting Is Not Very Scalable – you cannot scale selling your time by the hour.  Once you reach a ceiling of x hours per day that is essentially your income limit.

    It’s impossible to sell eight hours a day of online consulting, you need down time between calls, you need to follow up and perhaps provide recordings and other materials.  There are only so many hours you can sell consulting 1-1.  You need to look at more passive alternatives where you can leverage your time better to scale as a consultant.

    People Don’t Know What Help They Need – If I said I was a WordPress consultant, you would say “ooookay, so what!” if I say “I’m a wordpress consultant that can talk you through the problems of creating an e-commerce store” that is much more specific and people get the help you can offer.

    You need to spell out what you offer and how it can help rather than offering your time as a generic “Biz Consultant”.

    That’s why I like to offer specific consulting packages with a defined deliverable that people can understand and relate to their own problems.

    Zero Barrier To Entry – this is a pro and a con, if it takes no time to hang up your shingle as a consultant there is nothing to stop anyone doing this.  You need some way to differentiate yourself from the competition.

    People Have never Hired For What You Do – This makes selling consulting very difficult, if you have never hired a consultant and don’t know what they can do for you, shelling over a couple of hundred quid (or bucks to my American chums) for something as intangible as hiring someone’s brain for an hour is hard to swallow.

    You need to convince people how your years of experience can save them time and heartache.    This is not an easy thing.

    Closing Remarks

    I really enjoy consulting and I’m not trying to put anyone off but it needs to be part of a wider product offering of active consulting and passive products or a hybrid of the two.  This will allow you  to scale and stop you pulling your hair out.

    If you can do that then consulting and sharing your knowledge and experience with clients is a great business model

    Stay tuned for my new consulting service next week…..

    Photo Credit: Vincent_AF via Compfight cc

  • From Freelancer To Firm,

    From Freelancer To Firm,

    At WPDude we have gone from being a one person freelance setup to being a firm of four people over the last year or so.  We can provide WordPress technical support as an agency rather than one person.

    During that time I have had to learn the hard way how to make this pretty difficult transition.  If you are about to embark on this process, here are the top eight things I wish I had known before I started.

    1) Everything Slows Down

    One of the things I was very proud of as a freelancer was my quick turn around time.  I could get a quote out and turn around to start work in a couple of days.

    Once you are dealing with a team, everything slows down, there is more communication, there is more time assigning work, there is more time dealing with other people’s agendas, life styles etc etc the list goes on.

    Build some slack into your schedule and expect things to slow down.  Do yourself a favour and reduce your stress level by knowing things will slow down and learn to go with the flow a little.

    Set client expectations (sorry any clients reading I know I’ve been a little poor at this) and let them know things are working a little different from when you were a freelancer and there is an x day lead time now you are a firm.

    2) Get It Out Of Your Inbox

    If it is in your inbox, it might as well be lock away in your head.  You need to get all client and team communication out of the inbox and into a central place that you and the team can access at any time especially when people are not available.

    A few days ago we finally went 100% communication via Basecamp our project management tool for all team conversations. I’m looking at the best way to make all client communication 100% via basecamp too, but that is proving a little tricky, but I hope to be there soon.

    The point being now we have a centralised place where all communication between the team is visible and no crucial items like files or code are held in an inbox.

    3) Systemise Everything

    This is a real pain in the arse as we say in the UK (feel free to say ass my American chums).  It’s the least exciting thing I have ever done, but creating a system for how you work, the expected outcomes, output and feedback is huge.

    It is incredibly dull, very long winded but it pays off sooo much in the long run.  Each of our projects is systemised, at any point I can dip in and see progress through that system.  Everything is done the same way each time which not only provides a consistent quality across all work but it also allows us to onboard new staff members or contactors very easily.

    It’s not a cast in stone thing and it is evolving but is allowing us to take on more work and perform that work much more smoothly.

    4) You Are 100% Responsible

    This is a mindset I would like all freelancers cum business owners to adopt when they are starting out.

    When I say you are 100% responsible this means that any failure from the team is your failure and you cannot blame them.

    This may sound a little weird to some people but if all you do is spend your time chewing out your staff this will drive you mental and cause huge levels of stress.

    Take 100% responsibility for the issue, think I am to blame for this, how could I have stopped this happening.

     

    Nine times out of ten you will see that you didn’t explain something correctly or you did not set expectations properly or you just have not put across how high priority that work was.

    This list goes on and on, but taking 100% responsibility and systemiseing work or creating new documentation to stop the issue happening again is a great mindset.

    Remember you are learning to be a business owner so  you will make mistakes.

    5) Learn To Let Go

    I was a terrible micro manager at first (I still am heart, sorry to any members of the team reading this for last Monday and my knee jerk reaction)  I was fretting and sweating, where is my update, what can I tell the client, why have they not completed that task yet, it’s only a 20 minutes job!!!!

    Learning to let go and trust your team to get the job done is huge.  This is a skill that will stop the ulcers growing.

    This all goes back to your system, build the system, make sure there are enough checkpoints to ensure you can be happy with progress and let go.

    6) Delegate Don’t Abdicate

    On the other side of letting go is learning to delegate but not abdicate.  You need to pass work over and trust your team to do it, BUT you need check points in place to ensure the work has been done correctly.

    I have an end of day update process where all projects my team are working are update with a few paragraphs of progress report.  At a glace I can see where we are.

    I’ve delegated the work but I have not abdicated my responsibility to my clients.

    7) Some Clients Will Be Upset, Get Over It

    If a client is used to dealing with you as a freelancer and has a high level of access to your time, some clients  will expect this relationship to continue.

    Some even start to push at your boundaries and demand that you work on their projects not your team.  It’s a weird thing but once you setup boundaries a certain type of person automatically pushes against them.

    Be aware of this and be prepared to let certain clients go.  You have adopted an agency model to allow you to grow and you cannot grow if you are stuck catering to needy clients.

    8) Work On Your Business Not In It.

    Once you have a team in place it’s a good idea to stop working IN your business and start working ON it.

    You have an agency with staff now that needs a constant stream of work to pay their wages. Learning to work on your business to develop it rather than fulfilling service or product requests is a hard thing to do for the freelancer.

    There is a mindset that you can do it in 5 minutes, why not just log in and do it,  but you are paying someone to do those things for you. Learning to let go and pass the small jobs back it a skill unto itself.  Those five minutes soon add up and you find that teh work of running an agency and working on your business does not get done.

    There is a term amongst British workers who have move to management that they are “off the tools”.  Once you start a firm, get off the tools as fast as you can.

    My final point here if for a much more detailed future blog post but you need to learn how to deal with you new found time freedom.  This is one of the weirdest things I’ve come across, learning how to stop being twitchy once you have some free time.

    Wrap Up

    There are very few resources on moving from a freelancer to a firm and I was considering starting a new blog to cater for people planning to make that move.

    I’ve felt the pain and I feel I have a lot of information to share, so if you are interested in make the move from solo freelancer to full blown firm, can I ask you to do ONE thing, click through on the link below and leave your email address.  If there is enough interest I’ll start up the blog and start sharing my story.

    Click here if you are interested in more Freelancer2firm.com

    Photo Credit: bibendum84 via Compfight cc

  • [Video] Google Content Experiments

    [Video] Google Content Experiments

    It’s been a while since I last created a video post, so I thought I would show you how to setup WordPress to work with Google content experiments for your site.

    What Are Google Content Experiements

    Google content experiments(GCE)  are a way to split test content on your site and find out what works and what does not work on your site. This is part of the free Google analytic service.

    For example you may have a sales page with an image on it.   Does the sale page work better with the image or without it.  If you don’t have objective data, you are only making a guess.  Using GCE you can test which page performs the best by setting up an experiment and sending 50% of your traffic to one page and 50% of traffic to another.  Then using a system inside of your Google  analytics account called goals you you can test which page give you the most conversions.

    Check out my video tutorial.

    Video

    [leadplayer_vid id=”512F3F28CBCD0″]

    Links

    Here are the links I talk about in the video

    Google Analytics

    Content Experiments for WP plugin

     

    Wrap Up

    Do you find these type of video tutorials useful, let me know in the comments and I’ll create more.

    Photo Credit: blondyimp via Compfight cc

  • Plugin Review: BackWPup

    Plugin Review: BackWPup

    I want to take you through a review of a plugin I highly recommend called backwpup.  This is a plugin which takes regular scheduled backups of your site.

    http://wordpress.org/extend/plugins/backwpup/

    I used to go on about the benefits of backupbuddy but I’ve gone off that plugin because I’ve seen it failing to take backups 0n a number of sites due to size, timeouts and other php issues.  This is not something you can have working some of the time an not others when you are talking about backups so I went looking for an alternative.

    Backwpup also has the added bonus that it is free, the other quality backup plugins and services are usually premium.

    You Are Taking Backups Aren’t You?

    It still amazes me to see the number of sites that are not taking backups in the mistaken understanding that their hosting company is doing it for them.  This is not always the case you should always take a backup.

    Install a backup plugin now and starting taking your own backups on a regular basis.

    File And Database Backups

    It is very important to remember that WordPress is made up of two components  the database which contains all your data and variable settings and the file base which contains your WordPress scripts, themes, plugins and any uploaded media such as images, videos, pdf etc.

    Many plugins backup the database, but only a few do both, backwpup is one of those.

    Scheduled Jobs

    The plugin allows you to schedule backup jobs which run automatically, if you are anything like me, you will forget to run backups and right when you need an archive you wont have one.

    I recommend have a backup routine of daily database backups and weekly full backups of database and file base.  BackWPup allows you to do this.

    Offsite backups

    Another great facility is the ability to push your archive files off your site.  This means you have an offsite copy of your data in case anything catastrophic happens to your hosting account.

    With an offsite backup you can always rebuild your site.

    BackWPup allows you to push your archive to an ftp site, amazon s3, your drop box account and a number of other services.

    Alerting

    The system has email alerts if anything goes wrong, please please check your backups, during my days in corporate IT I can remember three or four times when I came to do restores only to find the archives had failed and we were not aware of that.

    The alerting email systems tells you about completed backups but also reports on an issues found during the backup.

    Restoration

    Backwpup comes with a restoration script, fingers crossed I’ve not had to restore a backup yet, and I haven’t use this script so I cannot comment on how good it is.

    The documentation suggests it will take the database files and restore them automatically for you.  It’s very important to know how to recover in the event of a failure.

    Wrap Up

    If you don’t have a backup schedule in place or you only have a partial backup I recommend you download and install BackWPup.   I’m using it on all my sites now, and with my clients too.

    http://wordpress.org/extend/plugins/backwpup/

    Photo Credit: Daniel Leininger via Compfight cc

  • Tiger Stripe Studios

    Tiger Stripe Studios

    Someone I’ve been working with for many years now  is Jonathan Woodward.  He is a designer and illustrator.

    I’ve worked with him as his client, he has been my client and we’ve worked together on a number of joint ventures.  He designed this site and a couple of others for me.

    Jonathan has developed a new type of design package I just wanted to tell you about.

    Graphical Subscriptions Services

    Jonathan has setup a great new design service for people who need lots of ongoing graphical work.  It’s a subscription based service where you call down on your designs as you need them on a monthly retainer

    Check Out His Portfolio

    If you are looking for ongoing design help, I really suggest you check out his portfolio at Tiger Stripe Studio.

    The image I use on this post is one of Jonathan’s excellent illustrations.

     

  • What Are Custom Post Types

    What Are Custom Post Types

    You may have heard of a custom post types for WordPress and wonder what they are all about (or is that just me, I sometimes forget the real people who live outside tech-land sometimes don’t think in geek), but what are custom post types.

    In this post I’ll give you a run down about custom post types and how they can help you.

    What Are Custom Post Types

    You can extend the way data is saved in your WordPress database by adding custom post types.  Instead of the standard post or page layouts, you can extend the database and store data in a way that is more meaningful to you and your requirement.

    An example is probably required here.  Imagine you want to extend your site and have custom posts types of events.  An event has a title, details, location and a date.  This is a little different from a standard post, so we need a custom post type.

    Lets Step through this example and talk about how this events custom post.

    How To Create Custom Post Types

    There are a number of ways you can create custom post types:

    Code them up in your theme – you can write a function for your themes function.php file which creates a new custom post type.

    Write a plugin – you can write a custom plugin which creates your custom post type and loads them up when the plugin is activated.

    Plugins – there are plugins out there there that allow you to create your own custom post types.  They allow you to create CPT without the need to understand the coding required.  My favourite is this GUI custom post type creator.

    http://wordpress.org/extend/plugins/custom-post-type-ui/

    All of these approaches do the same thing.  Some code will be created and this will  run when you site loads, new posts types are created and a menu item added to allow you to add content.

    They use the register post type function, here are full details if this your thing.

    http://codex.wordpress.org/Function_Reference/register_post_type

    Adding Custom Post Type Data

    Once your code has been added, there will be a menu option to add, edit and amend your custom post type data.

    You will get a version of the post editor that allows you to add your content.  It is the same editor we use for posts and page so there is not learning curve to add custom content.

    Displaying Custom Post Type Data

    Depending upon how your current theme is coded, your existing archive templates will display custom post types, but if you want something specific you will need to code up a template or add a custom query to existing pages templates.

    For example if you want to show custom post types on your home page rather than blog posts, you would need a custom query loop.

    If you don’t have the coding skills to write your own custom templates, Loop Buddy may be of help.

    Re-Using Existing Post Functionality

    We can re-use existing post functionality in our custom post types, for example if you want comments on your data, you can re-use that functionality.  This is setup when you create your custom post type.

    Extending Post Data With Custom Fields and Meta Boxes

    You can also add new data types of your custom post types and have meta boxes.  Here is an example from a plugin I use called In Post Ads which has some custom meta boxes.

    Click to see full sized image
    Click to see full sized image

    As you can see a custom meta box has been added which gives us a series of check boxes.

    It’s Not For The Feint Hearted

    As you can no doubt guess adding custom post types requires a certain level of technical skill to code up theme files, plugins or to create templates to display content.

    Some Examples I Have Built

    The way you can use custom post types is limited only by your imagination.  Here are some of the projects I have worked on:

    • Events – the event has custom coding to have an event date and sort on that date, as opposed to the published date which will not show future events
    • Guides – I wrote a custom plugin to add and manage downloadable PDF guides
    • Bibliography – I wrote custom code to modify a bibliography for scientific journals and publications.  This has lots of custom meta for citations and references.

    Wrap Up – What Are Custom Post Types

    Custom post types move WordPress away from being just a blogging platform to being a fully functional content management system.

    I don’t want to throw too much at you in one post, but next up I’ll talk about custom taxonomies.  You can create custom ways to organise your custom post types.

    If you need help adding a custom post type config to your site jump over to my WordPress technical support page and I’ll give you a no obligation quote.

    What are custom post types,  well this is an SEO excise to improve keyword density.

    Photo Credit: L. Marie via Compfight cc

  • Case Study: Creating A Multiple Territory Website

    A client of mine was running their business in multiple geographic locations and they needed help to make their website service all of their markets seamlessly.  This is a case study on how I did this.

    What They Wanted

    They were running their business in multiple territories.  USA, UK, Australia and New Zealand and they wanted an easy way to display territory specific copies of their posts and pages both for content management simplification and for their site visitors.

    They wanted to consolidate the three sites they currently supported into one.

    The Solution

    The solution for his was a little out of the box, I used a multiple language plugin called WPML.  This is usually used to display content in different languages but instead of installing multiple copies of the same copy in different langues.

    How It Works

    WPML give you the ability to store multiple versions of the same post or page and display it according to a language ( or in this case territory) selected by your site visitor .

    An example;  the contact page, we had three versions,  it contained address, telephone and a Google map for each regional office in New York, London and Sydney.  There were also three contact form 7 forms to send to the appropriate staff in each region.

    This is a very simple way to manage what used to be three complex websites with just one site and three copies of the content.  My client now manages one set of updates, one set of themes and plugins, a great time saving and a neat way to ensure site visitors get the correct content.

    I’ve created a video showing the multiple language setup here, not quiet the multiple territories but you will get a feel for what the plugin can do.

    Location detection

    I also took advantage of the location detection features of WPML.  It looks at your IP address and browser location settings and makes a best guess as to a visitors location.

    The appropriate local site is selected and displayed.

    Some Of The Challenges

    Here are some of the challenges I was able to overcome:

    • Images with currency – some of the images used had US dollar amounts on them,  we needed GBP and AUD NZD images too. WPML allows you to translate or territorialise images so the correct one
    • Home page slider – the home page slider used American english for some words, but in the UK and Australasian sliders that was not appropriate, so we were able to translate and host multiple sliders
    • Multiple english versions – I was able to setup three versions of english on the site en_US en_GB and en_AU and treat them as three different languages thereby setting up three different territories.

    It’s Not Just A Blog

    There are dozens of other applications WordPress can be used for over and above a blogging platform, and here is yet another one.  Are you using WordPress in an unusual fashion that would make a good case study let me know.

    When you think out of the box a little, there are plugins out there you can re-appropriate to do unusual jobs.

    Wrap Up

    If you want help creating a multiple territory website, contact me from my Quotation and get a no obligation quote.

    Next up I’ll write a very similar case study on running a multiple currency on-line shop using some of the same tools and techniques.

    Image by stevensnodgrass