Add multiple searchable content areas in WordPress with custom fields (video tutorial)

WordPress is more than just blogging software. It’s now a genuine, simple and cost effective way for teams of people to manage content. WordPress isn’t perfect — you only get the one content area, which isn’t ideal. Here I’ll explain a work around that’s both simple and effective.

In lieu of the WordPress ebook I’m working on (which is close to going live, by the way), here’s an advanced topic for the power WordPress users amongst you. If you’re not a power user, but understand the benefits of what this article discusses, let me know and I can certainly help out.

Here I am, re-working the Octane website from scratch. I have all these design ideas, but they all break when I take into account how WordPress 2.9 doesn’t allow for multiple content areas, which is a real shame.

A few months previously, I’d been playing around with custom fields for a client website — I’d used them to store information for the main navigation on the website, such as a shorter name for each Page to use in the navigation, and a value to tell the Plugin which Pages to include and exclude. So this got me thinking.

Can I use custom fields as content areas?

And the answer is a big fat yes! That said, anyone who’s used custom fields will know that you don’t get a fancy editor for your content; all you have is this plain text box. That itself could be the cue for a Plugin, but right then and there, it wasn’t an issue.

So that we know where all of this is going, I’ll explain what I was doing. I wanted to add blocks of text (containing headers, regular paragraph text and lists) to my Pages and then be able to add graphical devices in between.

Add the content into the custom fields

First things first, you need to add your content.

  1. Either edit or add a new Page or Post.
  2. Scroll down to the “Custom Fields” box.
  3. Under the “Name” label, either choose from a previous custom field from the drop-down / pop-up, or click the “Enter new” link button beneath it and type the name.
  4. Under the “Value” label, either type in or paste you content.
  5. Now click the “Add Custom Field” button.
  6. If this is a new Page or Post, be sure to either save draft or publish. If it’s a previous Page or Post, you don’t even need to update.

Add the custom field data to your theme

Now that you have your content added into custom fields, the next thing is to get that content into your theme. I don’t know where you’re placing any of this, so all I can do is explain how you pull your custom field content in.

  1. Select the place in your Page or Post theme file where you want your custom field data to appear.
  2. Paste the code below into that area.
  3. Swap out where it says: “features” with the name of your custom field.
<?php $block = get_post_meta($post->ID, 'name_of_custom_field'); if (!empty($block)) { foreach(($block) as $blocks) { echo $blocks; } } ?>

Keep in mind, you can call custom field meta data from outside of The Loop — which is to say, you don’t need to be inside the loop that WordPress uses to summon up data about a particular Post or Page.

Making your custom fields conditional

This code runs a check to make sure there’s data in the custom field. So, for example, you could invoke a layer in your Page or Post only if there’s content present:

<?php $block = get_post_meta($post->ID, 'name_of_custom_field');
if (!empty($block)) { ?>
<div class="name_of_division_class">
<?php
foreach(($block) as $blocks) { echo $blocks; }
?></div><?php
} ?>

But are custom fields searchable?

By default, no they’re not. So if you’re using them to store lots of content — such as product data, for example — people searching your WordPress-driven website won’t find any of the carefully curated content you’ve added into your custom fields. Dilemma.

However, there’s a fix for this, all thanks to John Hoff, who’s written a script that extends the scope of the WordPress search engine to grab custom field data, too — which you can download here.

I’ve taken his code (which was a Plugin in all but name) and turned it into an actual Plugin you can install into your copy of WordPress. Once installed, you’ll need to edit line 37, which includes the names of the custom fields you want searched:

$customs = Array('additional', 'benefits', 'features');

So, within the Array() item, just change names of the items within the single quotes.

Editing the name values of the custom fields array

To add a new custom field:

  1. add a comma after the last single quote;
  2. followed by a single quote;
  3. then the name of the custom field;
  4. followed by a closing single quote.

To remove a custom field:

  1. select comma before its name;
  2. and the last single quote after its name.

You’ve now learned how to turn WordPress into a more featured content management system, hopefully without breaking too much of a sweat. As always, if you get stuck, leave a comment and I’ll see if I can help out.


The all-new Octane website

What with all of the new projects (landing pages, websites, print design etc), things have been moving quickly around here. So quick, in fact, I’ve had to totally re-think and re-design the entire Octane website from scratch. So, what do you think?

Octane’s new website

And the reason for all of this furious industry is, well, you! The writing side of things is gradually (there are often consequential lead times for certain publications) picking up, thanks to Emily Cagle Communications, but the previous website and blog just wasn’t cutting it — if I want to appeal to the publications, I have to make it worth their while pointing their readers to me.

More emphasis has been placed on simplicity, speed of navigation and clarity. So when you’re reading an article, you’re not being distracted by links and buttons left and right. Instead, you just read down through the article, and when you’re done, you have the option to share the article on a bunch of popular social networks, or contact Octane for more information.

The wonders of WordPress

All of which is neatly squeezed into the ever accommodating WordPress — fast becoming less weblog and more content management system. I’ve been able to kid and cajole it into doing things you won’t be able to do with your common-or-garden variety installation of WordPress. Oh no. Much of what you see here is WordPress after being given the Octane treatment.

The knowledge

So what’s changed? Apart from everything, there’s a new home page, which is essentially the blog aspect, now called Knowledge. By pulling all of the content to the front of the website, all of the knowledge I’m pouring into Octane is right at your fingertips from the moment you step through the door.

And if you can’t find what you’re looking for, use the search tool. Or use the category browser further down the page.

Media — in the press

Then there’s the Media section further down the home page, which is where all of my publication materials can be found. Each article is an excerpt taken from the publication itself, accompanied by a link to the PDF, ready for download.

Community

Further down the home page is the Community panel. Here’s where you can hook up with Octane and me, Wayne Smallman, on either Twitter or Octane’s very own Page over on Facebook.

Designed for the future

Or as close as is feasible. You see, things just keep changing. Which is fine, assuming you’re ready for change. I am. There’s still more stuff I want to do and the new Octane website has the potential to meet those needs head-on.

If you’d like to know more about using WordPress to manage your website, or you’re interested in my web design services, let me know.


How to be a generalized specialist and why

“Me, a specialist? Oh no. I’m just a web designer, mate!” Contrary to popular opinion, web designers — the much maligned sub-species of the greater spotted graphic designer — can be specialists, much like anyone else. But does it pay to be a specialist in the noughties?

This is a pressing question for some, but not me. I’m happy in my skin, being a generalized specialist. And I’m not alone, either. Of my kind, their are many.

A brief history of specialization from a generalists perspective

When I started Octane back in ’99, I had every intention of offering a load of different services — everything from video production to 3D visualization and animation, right out to interactive CR Roms, as well as web design. Why no mention of web development? That didn’t come about until about 2002, about the same time my offering began to slim down into something resembling what Octane offers now.

The fact of the matter is, I just couldn’t do everything, not unless I had loads of time and loads of money. Money? For the software to back that proposition up. In reality, I had a finite supply of the former and hardly any (certainly not of the disposable variety) of the latter.

Over time, my proposition was whittled down, not simply because I wanted to focus on the things that interested me, but the things people kept asking for and I was in a reasonably good position to commit to, without wasting either their time or my own.

Now, some of you may be thinking to yourself: “What the hell has liking something got to do with doing it?!” I do what I like — in a very literal sense. If I don’t like doing it, or don’t want to do it, I don’t. If chasing the pound means selling my happiness, then I stop, sit down on a spare patch of grass and watch that gold-coloured coin just roll away in front of me.

It is entirely possible to be a specialist in a number of areas, but not a huge number, or you’re just over committing yourself, no matter how talented / quick you are.

I don’t see many out-and-out specialists these days, not out in the wild. If they exist, they’re usually on a payroll somewhere, where the weaknesses of their narrow field of occupation aren’t so badly exposed, and they remain insulated by other specialists, who together form a greater whole. That’s fine for an agency of 3-5 people, but for outfits like mine, it’s neither ideal or possible.

So how do you become a generalized specialist anyway?

I’m fortunate in that what I do either sits beneath or bestrides other disciplines and professions, depending on how you go about your thing.

I suppose when I talk about a generalized specialism, what I’m really saying is: your knowledge is like the root of a plant, probably not too deep like a weed or a tree, but deep enough so that the winds of client inquiry and project-related problems won’t blow you away.

Make your specialisms overlap

For instance, if you’re a head of marketing, you can employ a web designer or a web developer to realize your internet ambitions.

In another instance, if you’re a web designer like I am, what you do is a function of marketing, so therefor you can reach across into adjacent areas, such as social media, internet advertising etc, to bolster your proposition.

Similarly, web development will bring you closer to IT (though not too close, thankfully), since it’s more than likely you’ll be interfacing with servers, internal networks and their specifics.

With that as a background, and knowing your client needs.

Build a proposition from a specialism

You can start to build out your proposition around those needs and then target certain areas so that your knowledge is deeper and more complete than their current needs require.

So why do this? Because once you understand more of what is possible, you will then realize how you can offer your clients more. However, this does require an element of vision; the ability to anticipate the future direction of your clients.

Recycle your specialisms

Sometimes, you’ll get the direction wrong, but hopefully not by much. And, if you’re smart, you’ll play around with the timing of projects so that what you know can be applied to more than one client at the same time, amplifying the return on your invested learning.

Sounds easy, yeah? Well, it’s a skill that comes over time. If you’re not adept at dealing with your clients face-to-face, or have trouble imagining what they might or might not like, then that too is an area of generalized specialism you need to work on.

Jack of all trades and master of none?

I’ve got letters after my name. Those letters represent 6 years of my life. After all that time and effort and all I get is a lousy degree?! If I’d wanted a masters degree, I’d have needed to invest another 2 years of my life.

It was said by Doctor Watson that upon meeting Sherlock Holmes, he knew nothing of the motion of the planets. Yet in his defense, he got by. Why? Because he was a detective and not an astronomer.

As you can see, the level of commitment required to be a master is not inconsiderable. So don’t worry, Jack! Learn what you need to know, and know enough to know you maybe don’t know enough and you’ll do just fine.


Creating a Landing Page for Twitter, Facebook

Congratulations! You and your staff are on Facebook and Twitter. Now what? Chances are, there are people out there who want to know a little more about who you guys are and what you do. But, as part of a corporate entity, it’s not just the individuals they’re interested in, it’s your company, too. So what do you do?

Twitter, the global social networkAssuming your staff’s Twitter / Facebook profiles are company owned, you could just point all their visitors from Twitter and Facebook to your very corporate “About Us” page, but that’s often a little staid and obvious. This is about social networking, and each person you designate as customer facing is just that — a person.

Facebook, the global social networkSo rather than have a catch-all web page or blog article that just lumps everyone together into an amorphous blog of “we” and “us” business speak, why not let those people write something of their own in an article of their own? Why not let them talk about themselves, what they do, their interests, why they’re on Facebook, Twitter etc (here’s where corporate guidelines will need to be observed, to ensure some degree of consistency) and what their follow policy is?

If the social web is about the conversation, then what’s the conversation worth if we don’t talk to people? As I’ve said for years, people must first buy into people before they buy from people.

Taking things a step further, I’d recommend letting your team add photos of themselves, to give that personal touch, so that those in their social network can see the person they’re communicating with. Then add links to those personalized web pages into Facebook and Twitter, and voila! Everyone has their very own ‘landing page’.

What should a landing page include?

  1. Start with something about you and your role in the business.
  2. Then follow with something about you and your own interests, either within or outside the business.
  3. Talk about why you’re on Twitter / Facebook and what you intend to get out of being their.
  4. Discuss your follow policy — how and why you choose to follow certain people, and whether you reciprocate their following you.
  5. The advantages of having landing pages

There are possible other advantages here, too. For example:

  • If you choose to have each landing page as a blog article, then you have a collection of articles enriched with information about key members of staff, which will greatly increase the chances of your website being found. Let’s say you have a very active social networker on your team, having their name more visibly attached to your business increases your search visibility and helps with the smooth transition of trust between both you and your staff.
  • If you have a socially active team, active in different social networks, your business stands a much greater chance of being exposed to a far wider and deeper audience, of not just prospective clients / customers, but of suppliers, industry leaders and possible future employees, or perhaps investors.

In creating landing pages for Twitter, Facebook et al, you’re people first and business second. And since business is all about people, coming second never looked so good.


How to use LinkedIn to promote your business

LinkedIn is fast turning into a great place to meet exactly the right kind of people that can benefit your business most. Be they prospective new clients or staff, suppliers or respected industry leaders. For purveyors or information, LinkedIn can also be the venue to share what you write about.

LinkedIn, the professional business network

Earlier this evening (which, by the time you read this will be the day before), I found a question on LinkedIn’s Q&A, asking: How do you promote your business / services / blog using LinkedIn?

Posting your blog articles and services web pages on LinkedIn

I thought this was an excellent question, so I decided to reply, and offer that reply here for all to read, but expanded with more detail.

Posting to related groups

It’s tempting to join a related group and just post your stuff there. While that is a legitimate avenue for promoting your articles, I would suggest you do so only when your article offers something, like advice, help, tips etc. Something people will find useful.

Some people can — and will — interpret the posting of your articles to groups as being “spammy” and overly self promotional. Often, the people that are being spammy don’t follow up any of the comments.

That’s the problem with pushing articles about your services — they’re out-and-out self-promotional. The focus needs to be on adding value to the members of the group. Give them something to remember you by.

Of course, there are exceptions, but you need to be totally sure you’re offering something that will really help people out and not come over as being just another sales pitch.

Posting to the Q&A

I personally answer questions on LinkedIn’s Q&A and reference some of my own articles, if (again) that article offers specific and related advice, particular to the question.

So by all means, post links to your own articles and web pages, so long as they’re relevant to the question and likely to help in answering it.

The goal is to be useful — I also post links to articles, written by other people, which helps demonstrate impartiality on my part.

Trust is a quality of relationships that doesn’t come quickly or cheaply, and isn’t bought, sold, nor is it transferrable. So ultimately, this is an exercise is acquiring trust.

Posting to your status

The status update is a good, simple method to promote your articles, but you really need to be already engaging with people for them to want to engage with you — it’s essentially like Twitter, so the same rules apply.

I use Twitter, and use HootSuite in particular, which is a web application that enhances Twitter by offering a lot more features, such as options to schedule messages (otherwise known as “Tweets”) and a option to shorten URLs so that they fit into the 140 character allowance.

HootSuite also allows you to connect to your LinkedIn account, so you can post messages straight to your LinkedIn profile’s status. I personally use this sparingly, instead only posting messages / updates that are specifically related to Octane and my business activities in general, or articles that people will find useful.

A recent example being an article on how to stop eleven hidden security threats, which came on the back of my own article offering seven security tips for your computer and the web.

My recommendations for posting articles and web pages to LinkedIn are:

  1. Try to avoid posting general and off-topic status updates and instead focus on updates that a particular to you and your business activities.
  2. If you post to groups, follow up any comments. Sounds obvious, I know, but you’d be surprised how many people just “fire and forget”.
  3. When answering questions in the Q&A, why not suggest an expert? You’ll be helping to build trust with the person you’re suggesting, while demonstrating that you’re a good source for referrals.
  4. Also, whatever you do, if you see a odd or apparently naive questions (of which there can be many), don’t be tempted fire off a glib or dismissive comment. LinkedIn is, after all, a network for professionals — so leave the stupid remarks to the amateurs.
  5. Use something like Clicky web analytics to monitor the click activity of your articles in real time, in addition to using Google Analytics. Why? When you see clicks come in from a group, for example, follow the link back to see If there have been any comments and reply.
  6. If you’re using a link shortening tool (like bit.ly or ow.ly, which is part of HootSuite) ensure you have an account with them, so you can view their own click traffic statistics.

Above all, make yourself a resource to other people, so that they value your contributions, and in turn value you.