Showing posts with label WordPress. Show all posts
Showing posts with label WordPress. Show all posts

Monday, 19 August 2013

Make Money from a Blog with Adfly - Automated System


A while ago we discussed "How to make money from a Blog with adfly"
In this post i will show you how you can use a similar method to make money automatically from your blog! Its a really Simple method and a great money maker trick.


Requirements
Steps
  1. Create the accounts that you will need (email, blog, adfly)
  2. Create A blog for Music news, free mp3, Tech, Software or Games related (or other hight traffic keywords). NOTE: Adult related stuff is prohibited by adf.ly and blogger.com
  3. Choose wise a good sub-domain name, but remember, it is very important that name should match with the "Niche"
  4. Search the web for related things that you can use in your blog and publish a few posts
  5. Go To Your Blog Settings and make it fully visible to Search Engines
Make it Automated
Adfly has provided the "Website Entry Script"
If you wish to earn money when a visitor simply enters your site, use the following script. The visitor will automatically redirected on adfly ads so you don't have to worry about people clicking on your adfly urls.
Go to templates and click "Edit HTML"
Copy the following code and paste it just above "</body>" tag (or get your own code from here)

<script type="text/javascript">
    var adfly_id = *******;
    var adfly_advert = 'int';
    var frequency_cap = 5;
    var frequency_delay = 5;
    var init_delay = 3;
</script>
<script src="https://cdn.adf.ly/js/entry.js"></script>

Customize
  • Change id=******* with your Adf.ly Id 
  • 'frequency_cap': the number of times the user will be redirected to AdF.ly advertising in 24 hours.
  • 'frequency_delay': the number of minutes between adverts show to the user.
  • 'init_delay': the number of seconds between the advertising being displayed and your website loading. (It is recommended to keep this to a few seconds so that user will see your website first and then our advertising. It reduces the chances of the user clicking the BACK button)
If you want to use the "Website Entry Script" with the "Banner advertising" (less money, but less intrusive) change the following line:

var adfly_advert = 'int';

to

var adfly_advert = 'banner';

Done!
You are not going to earn much money on the first month because at that time you will not have much content and traffic. So don’t worry and specially don’t lose hope. Its a proven method and it will work if you work with it. Try to promote your content on social media as much as you can!

Feel free to ask any question and please don't forget to subscribe with email to get the latest posts at your inbox!

Tuesday, 14 May 2013

How to make money from a Blog with adfly [New Guide 2013]



Creating a blog is the best way to earn with adf.ly. Start a blog on Blogger platform about any topic which is popular. The best one is the Downloads. Software, Movies, Music or E-Books, anything which need to be downloaded from 3rd party websites.

(Warning: Don’t use copyrighted material, because if Adf.ly receive any complain, they will gonna ban you).

Lets say, you start a blog and plan to put Mp3 Music on it. So, do it like this:

Choose a good blogger template

  1. btemplates.com
  2. allblogtools.com

Download Mp3 Music from other websites and upload to File hosting sites
like mediafire or which one is easy for other to download from.

After uploading get the links and Shrink with Adf.ly
Make posts for Downloading those Mp3 Music and give Adf.ly Shorten URLs there.
You can also use “Full Page Script” from Adf.ly, but I will not suggest it.
Post as much as you can. Focus on Quality + Quantity.


Most of your traffic will be coming from Search engines like Google, and you should try to make them loyal visitors. Don't use lot of ads like Popup, PopUnder etc. An normal quantity of ads could be acceptable.

Soon you will be having hundreds of posts. You will have lot of Mp3 content available for downloading. Within some months you will be having lot of traffic coming from search engines. Those people will go through Adf.ly shorten links for downloading any of their desired Mp3 music. Keep in mind that visits on Adf.ly shortens links will not equal to your Blog visits. And specially in case when you have lot of other ads on your blog. Your visitor will be lost in any other area or ad and he can’t find download link, so simply they quit.

This method generates almost constant income per day. And this method will surely work for long term. Another great benefit you will get is, of having your own Blog which receive lot of daily traffic and you can monetize this in many other ways.

You are not going to earn much money on the first month because at that time you will not have much content and traffic. So don’t worry and specially don’t lose hope. Its a proven method and it will work if you work with it. So you have to do some hard work and then you will be earning almost 50-100$ per month easily.

Try it out HERE. Is a great way to monetize your blog traffic 

Saturday, 9 March 2013

9 Wordpress Anti Spam Plugin

Time activity an article about the top protection plugins of WordPress, I change the necessity to communication other really beta protection store for the bloggers, and i.e. Anti Spam Plugins. If you are a blogger, you moldiness be knowledgeable thousands of spams that actually pot your website unremarkable. Its irritating, time intense and above all pitiable to sit everyday and form out the central and legitimate comments from thousands of spams. Because we can not let go of your ruling for century bots. So, here are 9 top anti-spam plugins for WordPress which give amend you from those worries and let you interpret the sincere
9 Anti Spam WordPress Plugin

1. Akismet

Akismet is a spam filtering service which protects your blog from comment spam submitted through comment form, trackback spam or pingback spam. When a new comment, trackback, or pingback comes to your blog it is submitted to the Akismet web service which runs hundreds of tests on the comment and returns true or false. You do not need to maintain any blacklist in your part. It saves the spams in the database for 15 days in case you want to check it out manually and then automatically deletes them.

The missing part is that you do not have control over your comments. You get a blackbox with no direct control over its actions. You have to rely on Akismet’s decision. However you can submit a comment as genuine comment which is marked as spam by Akismet to the Akismet service so that it learns from your submission. Many bloggers have complained of commenters being wrongfully flagged as spammers and vice verse. What if the Akismet web service is down? All your comments will simply go into the moderation queue.

2. Comment Guard Pro

Spams are of different kinds. Most of the users often complaint that even after using a popular spam protection plugin, the purpose is not being served. The reason for that is, your plugin might not have that code snippet to deny one particular category of spammers. Suppose you have WP spam free plugin, so you can never get rid of human submitted spams from that. That is where you will need an almost all-in-one spam protection plugin for yourself.

Comment Guard Pro (for WordPress) is designed to unobtrusively protect your blog against all types of comment spams – trackback spam, pingback spam, robotic spam using comment form, human submitted spam (where the spammers actually goes to your site to spam you; they are the hardest to detect), referrer spam etc. It provides multiple layers of protection against all kind of comment spams.

Comment guard pro  plugins eliminates false positives (marks legitimate comments as spam) and  false positive (marks genuine comments as spam). It is hard to eliminate false positives for large spam queue size say 2000-10000 manually. It might be ok for 5-10 comments in spam queue.

A big achievement with this plugin is, you have full control over your comments. It comes with fully documented open pluglet API and examples to enable you to write your own pluglets. Comment Guard Pro also includes Akismet as one of its spam filtering service.So if you are concerned about comment spamming in your blog, then this is perhaps the most comprehensive anti-spam plugin for your WordPress.

3. Simple Spam Filter Plugin

Simple Spam Filter looks for a particular pattern to distinguish a spam from a real commenter, like most of the other Spam filters. The best part for this plugin is, it can work along with Akismet and will display a captcha if Akismet flags a comment as spam. So the problem with Akismet (that it flags legitimate comments as spams sometimes) can be countered with it.
If a comment gets rejected, then an error screen will be shown with an explanation of why the comment was rejected. An optional captcha can also be configured to display, which allows people to confirm that their comment is indeed legitimate.

4. Bad Behavior

Bad Behavior, though mainly used as a comment spam protection plugin has reliable security features too.
It prevents link spams and blocks the robots which delivers it. By acting as a gatekeeper, it prevents spammers from delivering their junk, and in many cases, from even reading your site in the first place. This helps your site’s load down, makes your site logs cleaner, and also contributes to prevent denial of service conditions caused by spammers.
Instead of merely looking at the content of potential spam, Bad Behavior analyzes the delivery method as well as the software the spammer is using. It is designed to work alongside existing spam prevention services to increase their effectiveness and efficiency. This is one of the most often upgraded WordPress plugin. You can use it.

5. WP-SpamFree

As I have already said, Akismet was a good fighter but never a reliable one against these spams. God knows how many times I have seen Akismet predicting wrong spammers where I had deleted legitimate comments. Here is Wp-SpamFree that claims to eliminate bots but not humans.
Features (according to the makers)
Virtually eliminates automated comment spam from bots. It ensures that your commenters are in fact, human.
A counter on your dashboard to keep track of all the spam it’s blocking. The numbers will show how effective this plugin is.
No CAPTCHA’s, challenge questions or other inconvenience to site visitors – it just works.
No false positives, which leads to fewer frustrated readers, and less work for you.
You won’t have to waste valuable time sifting through your Akismet queue anymore, because there won’t be much there.
Now with Trackback and Pingback spam protection. and etc

6. Math Comment Spam Protection Plugin

Math Comment Spam Protection plugin for WordPress 1.5.2, 2.0.x and 2.1 asks the visitor (who is making a comment) to answer a simple math question. This is intended to prove that the visitor is a human being and not a spam robot. This plugin does not require JavaScript or cookies. It uses a special encryption function; the result of the question is being passed via a hidden field. The result is being compared with the value entered by the visitor – after encrypring this value as well.

7. Spam Karma 2.3

Spam Karma 2 (SK2) is an anti-spam plugin for the WordPress blogging platform. It is meant to stop all forms of automated Blog spam effortlessly, while remaining as unobtrusive as possible to regular commenters
There is a Trackback referrer check and also a captcha backup . There are plenty of tabs with lots of options for general as well as advanced settings in Spam Karma 2.3.

8. Secure Form Mailer Plugin

This plugin creates custom contact form for your blog and secures it from spamming. It has a wide range of features.
  • Support for multiple instances
  • An easy to use dynamic form generation system (any number of fields, in any order)
  • Multiple recipients
  • Multiple file attachments
  • Optional auto reply feature
  • An image verification system
  • Numerous security features (including protection against email header injection)
  • A message template system and etc.

9. yaCAPTCHA

yaCAPTCHA or yet another CAPTCHA is a CAPTCHA plugin for WordPress that adds an image in the comment form of your WordPress application. In order to post comments, users will have to write down the characters that are part of the image. This can help prevent spam from automated bots and that too in a very cool and easy way as most of the.

Via cell90.blogspot.com

Friday, 14 December 2012

How To Easily Create Your Own URL Shortener With WordPress

This morning I set up a site with it’s own URL "shortening service" so to speak and some folks thought you guys might want to know how I did it. With all the talk of Tweet-Jacking and concerns regarding the branding you’re doing for URL shortening services instead of yourself, it only makes sense to create your own internal URL shortening service if at all possible.

Thanks to Michael Gray knowing at the drop of a dime that the max number of characters Twitter will display for a URL is 30, I did a quick count of our full URL:
http://adomainurlhere.com/ = 26 characters
(A lot of you have asked why I often non www with URL structure and now you know why… yes Michael, you taught me something a few years ago even if at the time you were thinking print space and not URL shortening.)

Since it’s entirely possible to shorten our own URLs and I’m not super technical, I went in search of a WordPress plugin that could help me along in the process and came across Link Shortcut. This appeared to have all the functionality I wanted (you can define random strings or generate your own, you can specify a sub-folder if you want and you can set a default length for the URL to ensure you don’t go over the "Twitter max".)

I installed the plugin, left the option for a sub directory blank (we’re close to the max without one) and set the default character length to 4 in the options (the 26 characters from our root domain plus 4 characters in our shortened URL = 30). Next, I manually setup a shortened URL the same way I would with Tinyurl.com or any other shortening service in my WordPress backend. Worked like a charm.

Until I checked the server header generated by the URL… which was a 302. I immediately asked the plugin author if he could change the redirect from a 302 to a 301 for SEO reasons, but I’m also impatient. Working with Thesis on a regular basis and learning about hooks has made me a little bit braver when it comes to nosing around PHP.

By opening all of the plugin files, I was able to identify that link-shortcut > lib > linkshortcut.php was the file that contained the function that "called out" to WordPress’s default redirection command (I am not a programmer so if my terminology is wrong, so be it):
/**
* Get final destination based on query and redirect user.
*/
function go(){
//determine final destination
$final_destination = $this->getFinalDest();
//redirect user
wp_redirect($final_destination);
}

The "wp_redirect" mentioned there is a default redirect function of WordPress which is still a 302 despite numerous complaints. That thread showed me that I could change the 302 to a 301 by making the following edit:
/**
* Get final destination based on query and redirect user.
*/
function go(){
//determine final destination
$final_destination = $this->getFinalDest();
//redirect user
wp_redirect($final_destination,301);
}

So I edited the file, saved it and uploaded the entire plugin again and it worked*. We now have our own URL shortening service right in our WordPress backend that 301 redirects the shortened URLs, making them as SEO friendly as possible.

*IMPORTANT NOTE: unless the plugin author makes this change to the plugin himself in future releases, you will need to RE-EDIT the above code every time you upgrade it.

EDITED TO ADD: The plugin author did update it so that you don’t have to edit the code yourself to make the redirect a 301.

Sure, we can’t control if others use outside shortening services to shorten our URLs, but we can at least control our own generation of shortened URLs. We can promote URLs that contain our branding and increase the trust of folks who might be wary about clicking through on those links if they were using a URL they didn’t recognize. And we can worry a bit less about URL shortening services shutting down, redirecting or breaking URLs we’ve promoted with our name attached to them.

EDITED TO ADD:

Aaron Chronister of Bacon Explosion and BBQ Addicts fame wrote us a kick ass function to update our tweet this button to use the shortened url (if one exists) while using this plugin. And then he said we could keep it a secret or share it, so here ya go!
/* Grab Custom Short URL */
function grab_short_url() {
mysql_connect("localhost","username","password") or die(mysql_error());
mysql_select_DB("database_name");
$result = mysql_query("SELECT * FROM wp_linkshortcut WHERE
url=’http://outspokenmedia.com" . $_SERVER["REQUEST_URI"] . "‘");
if (mysql_num_rows($result)==0) {
$short_url = "
http://outspokenmedia.com" . $_SERVER["REQUEST_URI"] . "";
echo $short_url;
} else {
$short_url = "
http://outspokenmedia.com/" . mysql_result($result,0,ident) . "";
echo $short_url;
}
mysql_close();
}

Be sure to change the username, password and database name to be your own. Then, instead of calling <?php the_permalink() ?> in your "tweet this" link, change it to <?php grab_short_url() ?> and you’re all set. YOU ROCK AARON! :)

Friday, 15 April 2011

Display Most Recent Tweet in WordPress

Twitter is getting very famous among bloggers. Many bloggers are now displaying their most recent tweet on their blog. If you want to display your most recent tweet on your blog simply place this code where you want to display it in your WordPress theme.

    <?php
    $username = "TwitterUsername"; // Your twitter username.
    $prefix = ""; // Prefix – some text you want displayed before your latest tweet.
    $suffix = ""; // Suffix – some text you want display after your latest tweet.
    $feed = "http://search.twitter.com/search.atom?q=from:" . $username . "&rpp=1";

    function parse_feed($feed) {
    $stepOne = explode("<content type=\"html\">", $feed);
    $stepTwo = explode("</content>", $stepOne[1]);
    $tweet = $stepTwo[0];
    $tweet = str_replace("&lt;", "<", $tweet);
    $tweet = str_replace("&gt;", ">", $tweet);
    return $tweet;
    }

    $twitterFeed = file_get_contents($feed);
    echo stripslashes($prefix) . parse_feed($twitterFeed) . stripslashes($suffix);
    ?>

Make sure to change the username in the first line.

Display Guest Author’s Name via Custom Field

Many Blogs are now having guest posts on their site. Some of these guest authors are one-time only authors, so there is no point in creating a separate profile for them just so you can display their name in the post. The smarter way to do this is by using the following code.

Open you single.php, or page.php in your template and add the following code where you display the author name:

    <?php $author = get_post_meta($post->ID, "guest-author", true);
    if ($author != "") {
    echo $author;
    } else {
    the_author();
    } ?>

This code will look for the custom field called guest-author if it is found, then it will display that name, otherwise it will display the_author function meaning the person who actually published it meaning you.

Note: You might have to remove the original the_author function before you place this.

Display Most Recent Comments with Gravatars

Have you seen sites that display most recent comments in their sidebar with user gravatars. Well this can be done easily with these codes. Simply paste the following code anywhere you want to display the most recent comments.

    <?php
    $query = "SELECT * from $wpdb->comments WHERE comment_approved= '1'
    ORDER BY comment_date DESC LIMIT 0 ,5";
    $comments = $wpdb->get_results($query);

    if ($comments) {
    echo '<ul>';
    foreach ($comments as $comment) {
    $url = '<a href="'. get_permalink($comment->comment_post_ID).'#comment-'.$comment->comment_ID .'" title="'.$comment->comment_author .' | '.get_the_title($comment->comment_post_ID).'">';
    echo '<li>';
    echo '<div class="img">';
    echo $url;
    echo get_avatar( $comment->comment_author_email, $img_w);
    echo '</a></div>';

    echo '<div class="txt">Par: ';
    echo $url;
    echo $comment->comment_author;
    echo '</a></div>';
    echo '</li>';
    }
    echo '</ul>';
    }
    ?>

To get more or less than 5 comments, change the number 5 on line 2.

Display Author’s Twitter and Facebook Information on their Profile Page

WordPress has fields for fields for author contacts, but it has not been updated in ages. So by default you do not have an ability to add author’s twitter or facebook. With this hack you can add this information on their profile page.

First open your functions.php and paste the following code:

    <?php
    function my_new_contactmethods( $contactmethods ) {
    // Add Twitter
    $contactmethods['twitter'] = 'Twitter';
    //add Facebook
    $contactmethods['facebook'] = 'Facebook';

    return $contactmethods;
    }
    add_filter('user_contactmethods','my_new_contactmethods',10,1);
    ?>

The above code will add two extra fields on your user-edit page named twitter and Facebook. You can display the code with the following code in your author.php file.

    <?php echo $curauth->twitter; ?>

Modify Excerpt Length and More Tags

WordPress lets you display Excerpts, but up until version 2.9 you could not control the excerpt length. With the following code, you can increase the length from default 55 words to as many words as you like. Open your functions.php file and add the follwowing codes in there:

    // Changing excerpt length
    function new_excerpt_length($length) {
    return 100;
    }
    add_filter('excerpt_length', 'new_excerpt_length');

    // Changing excerpt more
    function new_excerpt_more($more) {
    return '…';
    }
    add_filter('excerpt_more', 'new_excerpt_more');

Change the 100 word limit to the count that you desire.

Display the most Recent Post from a Specific Category

Did you see sites with a magazine style theme who are displaying posts from a specific category. Sometimes only the most recent post. Well you can do this too easily.

    <?php
    query_posts('showposts=1&cat=3');
    while(have_posts()) : the_post();
    ?>
    <ul>
    <li><h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>

    <ul><li><?php the_content(); ?></li>
    </ul>
    </li>
    </ul>
    <?php endwhile; ?>

Add the above code anywhere you like in the template. Make sure you change the category ID and you can change the number of posts displayed as well if you want.

Display Latest Sticky Posts in WordPress

Assuming that you have already created a custom page template and/or already have The Loop ready, paste the following code before the loop.

    <?php
    /* Get all sticky posts */
    $sticky = get_option( 'sticky_posts' );

    /* Sort the stickies with the newest ones at the top */
    rsort( $sticky );

    /* Get the 5 newest stickies (change 5 for a different number) */
    $sticky = array_slice( $sticky, 0, 5 );

    /* Query sticky posts */
    query_posts( array( 'post__in' => $sticky, 'caller_get_posts' => 1 ) );
    ?>

This code can very well be used in featured slider, or any other advanced feature that you would like to display on your site. This snippet is mostly geared toward a WordPress site that has a custom homepage or a magazine style look.

The credit to this code goes to Justin Tadlock and partially to Nathan Rice for coming up with the array slice solution.

How set an Expiration Date for Your Posts?


This hack comes becomes very useful when you are running a contest because you might
be posting information such as clues or hints that you don’t want to stay up for ever.
of manually removing the article, you can just make it expire automatically. It also works
if you have a product that you are offering a discount on. You posted it on your blog,
but you don’t want that discount to stay on your blog after its over. So you can remove it
automatically with this code.

All you need to do is replace your WordPress Loop with this code:

<?php
    if (have_posts()) :
    while (have_posts()) : the_post(); ?>
    $expirationtime = get_post_custom_values('expiration');
    if (is_array($expirationtime)) {
    $expirestring = implode($expirationtime);
    }

    $secondsbetween = strtotime($expirestring)-time();
    if ( $secondsbetween > 0 ) {
    // For example…
    the_title();
    the_excerpt();
    }
    endwhile;
    endif;
    ?>

Once you have done that, you can use custom fields when writing a post to set an expiration date. Make sure you select the key “expiration” and use the the following date format: mm/dd/yyyy 00:00:00

Now this hack does not remove or unpublish the article instead it just excludes the article from being displayed in the loop



How to Display Random Header Images in WordPress?

Most blog designs get boring if they have a huge header picture and it is static.
This is when this tutorial comes in to make your header images dynamic because
it rotates on each visit. You can select as many images as you want to rotate
randomly. It brings life to a blog.

First you need to name your images in this format:

    * headerimage_1.gif
    * headerimage_2.gif
    * headerimage_3.gif

You must separate the name with an underscore. You can change the headerimage text to himage or anything you like.

Once you have done that paste the following code in your header.php where you would like the images to be displayed or in any other file.

    <img src="http://path_to_images/headerimage_<?php echo(rand(1,3)); ?>.gif"
    width="image_width" height="image_height" alt="image_alt_text" />

Make sure that you change the number 3 if you decide to do more than 3 images. This code is not exclusive for WordPress, it will work with any php based platform.

Display Twitter Follower Count as Text

There are users who absolutely hate buttons like Feedburner buttons or Twittercounter buttons. Are you one of them? Do you want to display your twitter count as text, so it blends in to your new custom design? Well then this hack is just for you.

First you would need to create a file twitter.php and paste the following code in there:

    <?php
    $tw = get_option("twitterfollowerscount");
    if ($tw['lastcheck'] < ( mktime() – 3600 ) )
    {
    $xml=file_get_contents('http://twitter.com/users/show.xml?screen_name=wpbeginner');
    if (preg_match('/followers_count>(.*)</',$xml,$match)!=0) {

    $tw['count'] = $match[1];
    }
    $tw['lastcheck'] = mktime();
    update_option("twitterfollowerscount",$tw);
    }
    echo $tw['count'];
    ?>

Make sure to replace wpbeginner with your twitter name.

Then Simply place this code anywhere you want to display this:

    <?php include("twitter.php"); ?>

Display Feedburner Subscriber Count as Text

Have you ever been to a site that is not using Feedburner button and is still showing subscriber count?
Well they are probably using the trick we are about to share. Most designers use this trick to have
custom styling and avoid the annoying feedburner button.

Simply copy and paste this code anywhere you like most likely sidebar.php

    <?php
    //get cool feedburner count
    $whaturl="http://api.feedburner.com/awareness/1.0/GetFeedData?uri=your feedburner id";

    //Initialize the Curl session
    $ch = curl_init();

    //Set curl to return the data instead of printing it to the browser.
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    //Set the URL
    curl_setopt($ch, CURLOPT_URL, $whaturl);

    //Execute the fetch
    $data = curl_exec($ch);

    //Close the connection

    curl_close($ch);
    $xml = new SimpleXMLElement($data);
    $fb = $xml->feed->entry['circulation'];
    echo $fb;
    //end get cool feedburner count
    ?>

You can wrap it around in styling to make it look like however you want.

Display any Number of Posts in a Loop

Did you ever want to display a different number of posts on different pages. For example
on your category pages, you want to display 10 posts which you can control from your
Admin panel, but another page you want to show only 5 posts. Well this tutorial is just for you.

Open a Template file where you want to display an x number of recent posts:

    // if everything is in place and ready, let’s start the loop

    // to display ‘n’ number of posts, we need to execute the loop ‘n’ number of times
    // so we define a numerical variable called ‘$count’ and set its value to zero
    // with each iteration of the loop, the value of ‘$count’ will increase by one
    // after the value of ‘$count’ reaches the specified number, the loop will stop
    // *USER: change the ‘n’ to the number of posts that you would like to display


    if ($count == "n") { break; }
    else { ?>

    // for CSS styling and layout purposes, we wrap the post content in a div
    // we then display the entire post content via the ‘the_content()’ function
    // *USER: change to ‘‘ to display post excerpts instead

    // here, we continue with the limiting of the number of displayed posts
    // each iteration of the loop increases the value of ‘$count’ by one
    // the final two lines complete the loop and close the if statement

How to Display any External RSS Feed on Your Site?

Have you seen other bloggers who display their other blog’s feed on their site.
You want to do it too for extra promotion and traffic. Well here is the tutorial for you.
Simply paste the following code in anywhere in your theme:

    <?php include_once(ABSPATH.WPINC.'/feed.php');
    $rss = fetch_feed('http://feeds.feedburner.com/wpbeginner');
    $maxitems = $rss->get_item_quantity(5);
    $rss_items = $rss->get_items(0, $maxitems);
    ?>
    <ul>
    <?php if ($maxitems == 0) echo '<li>No items.</li>';
    else
    // Loop through each feed item and display each item as a hyperlink.
    foreach ( $rss_items as $item ) : ?>
    <li>

    <a href='<?php echo $item->get_permalink(); ?>'
    title='<?php echo 'Posted '.$item->get_date('j F Y | g:i a'); ?>'>
    <?php echo $item->get_title(); ?></a>
    </li>
    <?php endforeach; ?>
    </ul>

How to Create a Page that Displays Random Posts?

Have you ever been to a site and saw this cool feature? They have a link in their top
navigation to something like Stumbe! or Read Random Articles, or some other creative text.
When you click on that link, it takes you to a page that displays one random page. Each time
you refresh, you are delivered with a new post. Well this trick is just for you then.

You would need to follow the trick #1 in this article to create a custom page template.
And simply paste this code in there....


    <?php
    query_posts(array('orderby' => 'rand', 'showposts' => 1));       
    if (have_posts()) :
    while (have_posts()) : the_post(); ?>

    <h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>

    <?php the_content(); ?>

    <?php endwhile;
    endif; ?>

This is a simple WordPress Loop that is running a query to display random posts and the number 1 in there is telling WordPress to only show 1 post. You can change that number, but most of the time people do it one post a time.

Related Posts Plugin for WordPress, Blogger...