Showing posts with label Blogging tutorial. Show all posts
Showing posts with label Blogging tutorial. Show all posts

Thursday, 30 June 2016

WordPress Tutorial - Listing Blog Posts in Different Style with blog count

Previous Video: https://youtu.be/x3HVk2PuUSA
Previous Text: http://1wmedia.blogspot.in/2016/06/listing-blog-posts-in-different-style.html

In this tutorial, We will correct the previous bugs in the code and displaying limited post lists, I mean 5 or 7 latest posts. Please view the previous tutorial before reading this tutorial.

  1. Open your front-page.php file and remove the unwanted <hr> tags. 
  2. Add if statement for count which is the post count less than or equal to 5.

    <?php if ($count <= 5) : ?>
  3. close the if statement before the endwhile.
  4. Save the file. Now view the site. You will see only 5 posts in the post area.
  5. For Post Thumbnail, Go to Post Edit and add thumbnail. For thumbnail size, Please view the previous tutorial.
Here is the modified code:

   <!-- START THE FEATURETTES -->


 <?php if (have_posts()) : ?>
<?php $count = 0; ?>
<?php while (have_posts()) : the_post(); ?>
<?php $count++; ?>
<?php if ($count <= 7) : ?>
<?php if ($count % 2 == 0) : ?>

      <div class="row featurette">
        <div class="col-md-7">
          <h2 class="featurette-heading"><?php the_title(); ?></span></h2>
          <p class="lead"><?php the_content(); ?></p>
        </div>
        <div class="col-md-5">
           <?php the_post_thumbnail('', array('class' => 'featurette-image img-responsive center-block')); ?>
        </div>
      </div>
     
      <?php else  : ?>     
 

      <hr class="featurette-divider">

      <div class="row featurette">
        <div class="col-md-7 col-md-push-5">
          <h2 class="featurette-heading"><?php the_title(); ?></span></h2>
          <p class="lead"><?php the_content(); ?></p>
        </div>
        <div class="col-md-5 col-md-pull-7">
       
           <?php the_post_thumbnail('', array('class' => 'featurette-image img-responsive center-block')); ?>
    
        </div>
      </div>
     
      
      <hr class="featurette-divider">
      <?php endif; ?>
      <?php endif; ?>
<?php endwhile; ?>
<?php endif; ?>
 

      <!-- /END THE FEATURETTES -->


Video Tutorial:

 

Wednesday, 2 March 2016

Some common mistakes - should avoid when blogging




If you are starting or running a blog, you should avoid following mistakes. This helps you to make more money as well as success in your blogging.


1. Search Engine Optimization:

Most of the bloggers are having good knowledge in their subject. But they don't know how optimize the SEO (Search Engine Optimization).  Here are some tips :
  • Create Google analytics code and tracking id for your blog and insert it.
  • Don't forget to submit your domain name at Google URL submission
  • Also submit your domain name to some other search engines like Yahoo, Baidu etc
  • Do some keyword research and implement them in your blog
  • Update and post new posts often. Search engine loves new and updated contents.
  • Put some attractive pictures to post.
  • Create Google map to your business location.
  • Hosting is very important, Don't buy poor hosting plans, If you are using WordPress, then buy WordPress hosting.
  • If you are running WordPress blog, install Yoast plugin and configure it.
  • Your contents should be relevant to your blog and fresh.
  • Do the software and framework updates whenever it needs.
  • Create Social pages and invite your friends to join. Post your article links to your social pages.
  • Don't try to increase traffics informal way.
  • Try Google Adwords, LinkedIn ads, Facebook ads to increase traffic.
2. Copying Contents from Other Bloggers:

Most of the people don't like to read the contents or information twice. It gets them bored, and they never come to your blog again. Your topic should be new and your own writing. Try to find the new interesting topic and write about it. How to find new topic?
  • If you have subject knowledge, then automatically you find new topics.
  • So read a lot from internet or books. Then write, based on your own view and thought.
  • Go outside, find some groups related to your blog, join the group and share your knowledge. You will get more shared knowledge from them.
  • Watch TV news or magazines which is related to your blog. This helps you to increase more about the subject.
  • Join a journalism course. It helps you how to write new topics.
 3. Putting maximum and unwanted ads:

If you put 10 or more ads in single page, then your readers willing to move some other sites or blogs. Here are some tips how to put ads in your blog.
  •  Don't put popup and clickable ads (Inside your content)  in your blog.
  •  Put maximum two to three ads in a single page or post.
  •  Avoid / Remove unwanted ads.
  •  Avoid to place too many ads inside or between the contents/posts.
  •  Free some pages/posts without ads.
4. Reply the comments: 

Don't forget to reply the comments you have received. If not, then users or visitors consider  - you are inactive. It may looks simple one. But its very important to every blogger.

5. Do not use hard English / Language :

Your visitors may be all over the world. So do not use hard words(unfamiliar, unpopular), idioms and phrases, high level grammatical sentences in your writing. It will annoying your visitors and they never like to read your posts. So use simple, easy, familiar words in your writing.

6. Posting articles without consistently:

Many bloggers starting and posting articles eagerly at starting stage. But after few months, they are not interested and dry, giving long gap in their postings. So take some time between your postings and do not run away from your blog. Find some interesting topics and write regularly.

7. Close or Shutdown the blog permanently before getting earnings: 

This very important than others. Because, you have invested some time and money in your blog. You should maintain your blog at least one year. Many bloggers are creating blogs for earnings. If want to earn from your blogging, find some alternate methods. Do not always focus on same methods.

Try something like this:
  •  If you are not earning from Adsense, then try alter methods, like infolinks
  •  Try some affiliate marketing like CPA .
  •  Consult with famous bloggers or join a course something like how to blogging?
  •  Get feedback from your readers, friends then improve your writing as per the feedback.