Showing posts with label social media. Show all posts
Showing posts with label social media. Show all posts

April 2, 2013

Wordpress Howto: Add Previous and Next Post Links to Blog Pages

HowTo: add Previous and Next Post buttons to your Wordpress blog.

Here's a tip: Want people to view more than one page of your site?

Give them an easy way to do that.

This might seem blatantly obvious but you'd be surprised how many sites don't have simple "Next" and "Previous" links on all pages that should.

You probably don't even notice, you just leave when you're done reading that article, probably without bookmarking or subscribing either (hint hint). You can literally double your "average time on site" in about 10 minutes with this simple trick.

Why is this key? Well, if more people visit more pages, and spend more time on your site, you will rank better. Even better, they'll be presented multiple opportunities to buy things or sign up or whatever your goal is that visitors should be doing.

Fun fact: time visitors spend on your site is also called "engagement" and Facebook is way out in front as the worldwide leader for this metric. In other words people spend more time on Facebook than they do on Twitter, Google+, etc.

I also show you how to change the links to say whatever you want, including how to add the post title to next / previous links. This is not only good for users, but also great for blog SEO. All bloggers should consider doing it this way, as internal linking is very important for search visibility.

How to add Next / Previous links to Wordpress post pages

We're going to edit your theme's Single Post template which is usually the single.php file.

Note: I recommend making a backup of the site before attempting any changes. If you have cPanel this is as easy as clicking Backup from the main cPanel page (most hosts), or you can use various Wordpress plugins, or simply copy the files somewhere safe on your local computer (like C:\Backup or /backup) before you edit them. 

Let's get started:

In your Wordpress dashboard, click Appearance->Themes->Editor 

In the right sidebar, click single.php 

Find the line:
<?php comments_template ?>

Hint: if your file is large, search for (Ctrl+F) the text comments_template

Go to the line AFTER that line by placing the cursor after ?> and pressing Enter

(I usually press Enter 2 or 3 times to give myself some space)

Add this block of code on the next line:

<div>
<h3>
<span style="text-align: center;">Where next?</span></h3>
<span><?php previous_post_link(); ?></span> <span style="float: right;"><?php next_post_link();
?></span>
</div>

That should get you started - you can use it as is or add custom styles with a bit of CSS.

*Note if you have multiple or custom post types - for example "Recipes" or similar - you will also have to find the .php files that generate those pages and change the Next and Previous links there as well. In most cases they should have the word "single" in the file name, like singlerecipes.php. Add the code above in the same place (new line after comments_template ?>)

Customizing Previous and Next Post link


You can add options by calling next_post_link and previous_post_link with options (add inside of the parentheses):

next_post_link('format', 'link', 'in_same_cat', 'excluded_categories');

So for example, to only pull items from the same category, exclude category number 2, and to always use "Next->" and the post title in bold for the text of the link, you would use:

next_post_link('%link', 'Next-><strong>%link</strong>', TRUE, '2');

in place of next_post_link();

You can even use an image for the Next post link in Wordpress although I generally recommend text links for SEO (if you use images, make sure you generate alt tags).

Save the file (you've backed it up, right?) and refresh your site. You may need to press Ctrl+Shift+Delete in your browser to clear the cache or just press Ctrl+F5 to refresh the page. If you don't like it or you broke the site, don't panic, just restore the backed up file, site, database, or cPanel backup that you made before making the changes.

If you need help, Call a developer

Further Reading -> Wordpress Customization:

"Wordpress Howto: Add Previous and Next Post Links to Blog Pages" continued here...

April 9, 2009

5 Advanced Twitter Tips

I know, I should post more often - I've got requests for posts about RSS and some Twitter basics, but in true absurd human fashion, I will give you some juicy advanced Twitter tidbits (twidbits?) instead. If you need a basic overview of Twitter, please see Twitter Blog Marketing Tactics, leave a comment, or contact me directly. Please add your favorite advanced Twitter tips in the comments! Here are my top 5 Advanced Twitter Tips for Twitter Power Users, in no particular order:

  • Be retweetable. The best ways to do this are: 1) say something funny and somewhat random (keep it related to your "primary topic"), or b) bring the news - tweet breaking articles within a few hours of them being posted to get lots of retweets! Tip: leave really good tweets up overnight - remember how your latest tweet is in nice big attention-getting font? Great place to leave a joke, quote, tip or link to your awesome product/service for 6-12 hours (if you can stay away from Twitter that long).

  • Timing is everything. Morning in the US (or your local market) is a great time to Tweet, especially if you want people to act today. Based on some of my analytics, Twitter may be up to twice as "active" on weekends, so if you Tweet once a week, make it on Saturday.

  • Pay attention to your following. Try to follow most of the people you expect (want) to be your customers. Note things like tone (casual/professional), "style" (lots of RT's? Do they recommend or buy other products? What attracts them to people/products/companies?), what time of day their tweets are the most dense (hint: check the difference in timestamps of the first and last posts on your home page - closer together = good time to engage your followers).

  • Give stuff away, at the right time, to the right people. People are attracted to Twitter specials - try pre-releasing a product on Twitter, or giving a discount to your followers!

  • When you @reply, make at least some of your @replies such that anyone will benefit. An @reply can be a powerful recommendation for a product or service - just remember to add a description (e.g. Don't just say "This will work", say "Robo2112 widget will help you add that spark you need to your website")

  • DMs can help - or hurt - you significantly. DM's (and @replies) are the bread-and-butter of Twitter. Carefully crafted direct messages can create strong personal relationships and quickly convert a follower into a loyal follower, or even a paying client. I would recommend staying away from auto-DM's, at least until you are over, say, 100,000 followers. I do understand there is a point at which marketing this way makes sense, but while you have the ability to enjoy close reciprocal relationships with your most targeted followers, take that opportunity. Use the above tips to write powerful DM's that make your point in a concise and memorable way and you will be able to literally pick the clients you want to work with - a powerful edge in any industry!

  • Last but not least, timing is everything (paying attention?). By now you should have a target market of several specific niches and some understanding of your followers' Twitter habits (twabits). When they are online - DM them, @reply them, follow the people they are chatting with (who are also online and should follow you back), and follow some of their followers. Hint: Twitter followers are listed in chronological order by when they followed that user (most recent first). The first page of users, especially for popular users in your target niches, should be online currently - follow them to get more targeted followers.

Disclaimer: None of these techniques are likely to get you tens of thousands of followers in 90 days or whatever it is everyone is DM-ing around lately, nor will they shoot you to the top of the Twitter celebrities. These 5 advanced Twitter techniques may, however, help you use Twitter within your overall marketing strategy as an effective tool to build a community of close-knit, engaged followers who may become your best clients!

Bonus - Cool Free Twitter Tools!


  • Twitterator lets you follow a bunch of people at once

  • TweetCube lets you share files (<10MB) on Twitter for free! Remember the "give stuff away" tip? Here you go...

  • Twits Like Me helps you find people to follow who share some of your interests. Targeted marketing, and such.

  • If that's not enough Mashable has a list of over 140 Twitter tools

  • Last, there's the older Twitter Toolbox - some of these may no longer work, but there are still some good Twitter apps and tools there!

Happy Twittering and remember to Retweet!

UPDATE: Thanks to everyone tweeting this post!

@IgorFomichev @seanometer @MarjyMeechan @MonicaPortugfan @mabsmith @CodeSucker @zygbot @EdwinKersten @hsbcnews @julianpettit @TracyGazzard @twitme101 @AnthonyMcMurray @kdburnett @briankurtz @Marenda @foolsprogress @thewildjoker @Jan_Geronimo @fpalattao @mparent77772 @sillyaudrey @twitte_r_tips

Want to get even more Twitter followers? Just Tweet these 5 Twitter tips, and I will put your Twitter link on this page! Feel free to leave comments to remind me!


"5 Advanced Twitter Tips" continued here...