Redirect a Blogger post to External URL

First, I have to use the conditional code of Blogger to select a particular page or post, once we select the page that we want to redirect, we will apply meta code to redirect.

Don't think so much, Just copy the below code and paste it just below to <b:include data="blog" name="all-head-content"/> code inside your Blogger source code.


<b:if cond='data:blog.url == "Your-Blog-Post-URL-HERE"'>
<meta http-equiv='refresh' content='0;url=External-Post-URL-HERE' />
</b:if>

Change your blog post URL and the external post URL in above code, and save the template. Now, go to the post that you have redirected, you will see once it loads, redirected to the external domain post page. If you have any doubt you may feel free to contact us.

Source: http://www.bloggertipsseotricks.com/2015/06/add-custom-redirect-post-url.html

WordPress two step authentication Step by Step Tutorials

This post was originally published at JustLearnWP.com : http://justlearnwp.com/wordpress-two-step-authentication-tutorials/

 

Google’s spam guru, Matt Cutts, explained what is Two-factor authentication:

Two-factor authentication is a simple feature that asks for more than just your password. It requires both “something you know” (like a password) and “something you have” (like your phone).Source:
Online security is very important, bad guys and hackers are always trying to access websites. There are many ways to hack a WordPress website and Brute Force Attack is one of those attack. It is important to use a secure and strong user name and password but sometimes it does not work.
To make your WordPress websites more secure and safe you can use many WordPress security plugins. Two-Factor Authentication also known as WordPress two step authentication is very popular used y some of the most popular websites online including google, WordPress.com, Twitter and many more.
There are many free WordPress security plugin available to add Two-Factor Authentication (WordPress two step authentication) to your WordPress website. I you want to learn how to set up Two-Factor Authentication in WordPress you can read any of these tutorials.
  1. How to Set Up Two-Factor Authentication for Your WordPress Site with Google Authenticator

  2. This tutorial is written by Kristen Wright for ithemes.com, In this post Kristen covers how to set up WordPress two step authentication with Google Authenticator and iThemes Security Pro.
    Author: Kristen Wright
    Website : iThemes
  3. How to Use Authy to Manage Google Authenticator Keys for WordPress

  4. If you’re adding two-factor authentication protection to your WordPress site with iThemes Security Pro, you have two ways to manage your login keys — directly through the Google Authenticator app or with Authy, an app that also manages your Google Authenticator keys.
    In this tutorial Kristen explains benefits of using Authy and How to Use Authy to Manage Google Authenticator Keys for WordPress.
    Author: Kristen Wright
    Website : iThemes
  5. Introduction to Two Factor Authentication

  6. This article is written by Aaron D. Campbel for iThemes.com, in this article Aaron explains What is Two Factor Authentication? What are the Benefits of Two Factor Authentication? and How do you get started with WordPress two step authentication?
    Author: Aaron D. Campbel
    Website : iThemes
  7. Two Step Authentication « WordPress Codex

  8. In April 2013, WordPress.com announced that they would let users log in with two-step authentication for better security. Two-step authentication is showing up all over the Internet as more sites look for better ways to secure logins, which are the weakest part of anything a user does online.
    You can read more about WordPress Two-Factor Authentication (WordPress two step authentication) at WordPress.org
  9. How To Set Up WordPress Two Factor Authentication

  10. This article is written by by Brenda Barron for elegantthemes blog. Brenda has explained what is Two-Factor Authentication and listed some popular free and premium plugins for WordPress two step authentication.
    Author: Brenda Barron
    Website : elegantthemes
  11. Using Google Two-Factor Authentication With WordPress

  12. This step by step tutorials is written by Jeff Reifman for TutsPlus. In this tutorials he explains how you can use Google Two-Factor Authentication With WordPress using Google Authenticator WordPress plugin.
    Author: Jeff Reifman
    Website : TutsPlus
  13. How to Enable 2-Factor Authentication in WordPress

  14. In this tutorial Sourav teaches you how to enable two-factor authentication for WordPress using a free plugin called Duo Two-Factor Authentication.
    Duo Security is an enterprise-level, renowned security service which is trusted by hundreds of companies like Sony, Microsoft, Accenture, Toyota and Yelp. It’s extremely secure and equally easy to use.
    Auhtor: Sourav
    Website: wpexplorer
    Image Source : wpexplorer
  15. Two Factor WordPress Authentication with Google Authenticator

  16. This is another tutorial written by Sourav for wpexplorer.com. In this tutorial you can learn how to use Two Factor WordPress Authentication with Google Authenticator plugin.
    Auhtor: Sourav
    Website: wpexplorer
  17. 2-Step Verification for WordPress Using Google Authenticator

  18. This tutorials is written by me for sitepoint.com. In this tutorial you will learn to set up 2-Step Verification for WordPress Using Google Authenticator plugin.
    Author : Tahir Taous
    Website : Sitepoint
  19. How To Protect Your WordPress Account Login with Two-Factor Authentication on Ubuntu 14.04

  20. This is another tutorial by Sourav Kundu about Two-Factor Authentication. In this article he teaches you How To Protect Your WordPress Account Login with Two-Factor Authentication on Ubuntu 14.04.
    Author : Sourav Kundu
    Website : DigitalOcean
  21. Enhance WordPress login with two factor authentication

  22. This tutorial is published by CssIgniter team. You will learn how to use Two Factor Auth plugin. Two Factor Auth plugin uses your email or the Google authenticator app (available on iOS, Android and Blackberry) to provide the token and does not require a third party service.
    Website: cssigniter

WordPress two step authentication: Final Words

With these tutorials you can learn how to set up WordPress two step authentication. Never ignore security and always use strong passwords, user name and security plugins to make your website secure and safe.

Download Free eBook : Blogging For Profit

In this eBook you will learn how to start a blog that matters, tactics to increase blog traffic, email subscribers and earning.




we will not share your information with any one. We hate SPAM too.

Join Free Newsletter to Download Free ebook and receive latest WordPress tutorials, articles and tips directly in your email inbox. Of course, you can cancel your subscription at any time.

how to launch blog successfully & increase traffic : 37 proven tactics


Step by step guide to launch a blog successfully and increase blog traffic






This post was originally published at http://JustLearnWP.com :justlearnwp.com/how-to-launch-blog-successfully/

how to launch blog successfully and proven Tips to Increase Blog Traffic

Starting a blog is really easy now a days you can learn very easily how to get your blog out there. WordPress has made it really simple and easy to start blogs and websites. If you are serious blogger and you should learn successful blogging tips and tricks. In this article i will share many tips, techniques that will help you to know how to make a popular blog?

I am also following most of these tactics to increase blog traffic and email subscribers. As you know JustLearnWP is a new blog started in November 2015 and i will be publishing more content on about WordPress, Theme Development and Blogging. Don’t forget to sign up for our newsletter to get latest articles and resources in your inbox.

Lets learn how to launch blog successfully and 37 tips to increase blog traffic, build audience and SEO,

How to build audience for your blog


As a blogger you always want to increase your blog traffic, email subscribers and make money. it’s not a bad thing everyone wants to do this. If you have an established blog with thousands of visitors, subscribers, then it might not be your first priority (to increase blog traffic and email subscribers), but as a beginners blogger traffic and subscribers are very important.

You need an audience, to share your experience, expertise and views. You might create awesome content and perfect and most useful content and publish it on your blog, but what if you don’t have audience and no one reads your content except you. Only you write, you read and you appreciate your content.
Before creating content, you need an audience that want to listen, learn and read what you share. Think of a professor, giving lecture in a classroom and there isn’t any student to listen. Lecture can be an immensely effective tool in the classroom but there must be students in the classroom.

I am sure, You don’t want to talk to walls, you need visitors, audience and subscribers and you really want to increase blog traffic. Questions is how to increase blog traffic, email subscribers and make money as well. I will explain what you need to do before publishing your first blog post, or even if you already have published a few or many blog post how to attract visitors to your blog.

Study other related blogs: Study the other bloggers in your niche, learn about the hot topics in your community, figure out where your potential audience, readers are hanging out, identify who the leaders are, and read up on some of your favorite writers, blogger, popular blogs and the people whose voices you would like to emulate.

You will find that a lot of your writing is affected by what you read. Seek out the good bloggers, writers, blogs and follow them. Follow them on twitter, Facebook or you can join their email list. See what type of content they publish and what type of articles are more popular (See number of comments, twitter, facebook shares etc).

20 Proven Tactics to Increase Blog Traffic

  1. Here are few key points to remember.
  2. Pick a topic, niche for your blog. Decide what you want to blog about.
  3. Come up with a great idea to showcase your skills and knowledge.
  4. Make sure your topic isn’t too narrow, it should be wide enough, so you will not get bored with it.
  5. Come up with a slogan that sums up in as few words as possible what people will find on your blog.
  6. Brainstorm possible easy to remember and interesting names for your blog.
  7. Find a suitable domain name — not too long, no-hyphen, don;t use numbers, misspelled words, choose easy to spell domain name.
  8. setup a blog and create a coming soon page or you can use a simple HTML coming soon page.
  9. create a freebie such as an small eBook, email course or few videos
  10. create a landing page, where users can download/subscribe eBook, videos course or email course
  11. ask users to subscribe to your blog to download your freebie.
  12. Collect email addresses, grow your email subscribers.
  13. Write guest posts also known as guest blogging on other blogs, related to your niche
  14. Write guest posts only about your niche and relevant blogs.
  15. Share your blog/website/landing page/social media links in Author bio
  16. Optimize Your Author Bio, otherwise you might be missing out on traffic and quite possibly, revenue.
  17. Create a content strategy: how often you will publish.
  18. Launch you blog
  19. Write and schedule at least four blog post on your new blog so you can focus on blog promotion, guest posting etc.
  20. Comment on other industry blogs and link your name back to your own blog to encourage people to follow it back.

10 Quick SEO check list to increase blog traffic

  1. Set up web analytics tracking (Google Analytics, Jetpack Analytics for WordPress)
  2. Implement Google Webmaster Tools
  3. Fix broken links and complete redirect mapping
  4. Publish an XML Sitemap (Yaost SEO for WordPress)
  5. Include a robots.TXT file
  6. Use ReI = Canonical for duplicate content.
  7. Write descriptive meta tags with relevant keywords
  8. Use optimized Search engine friendly permalink structure (SEO friendly URLs)
  9. Develop an Internal Linking Strategy
  10. Optimize Your Images (image size, alt text for images and descriptive image names)

When you set up all above steps and start guest blogging, you will start receiving traffic to your blog. But keep one thing in mind when writing guest posts must write relevant to your niche, for example your blog is about WordPress, write awesome and useful article about WordPress and must submit on WordPress related blogs.

When people will read your post, they will see your author bio not every one will visit your blog but there will be many people, who will visit your blog, sometimes you will hundreds and even thousands of new visitors and subscribers.

Keep in mind, driving traffic is not enough, you will have to convert visitors into email subscribers, you might be interested in increasing your social media followers, but email subscribers are most valuable, when it comes to selling your products.

You should create a freebie also known as ethical bribe, and ask visitors to enter email to download your freebie, must set up a sign up form, and make it visible, highlight it so people can easily see your offer.

If you will offer something valuable to your visitors, you can collect 100 to 1500+ email subscribers, and few thousands visitors to your blog, after a great guest post. Make sure you choose a blog, that already have a lot of visitors, if you will write for a blog with 2000 monthly visitors, you won’t see any noticeable change in traffic and email subscribers.

98 tips from Pro’s to increase blog traffic and build audience

Now you know how to launch blog successfully and how to increase blog traffic and email subscribers. There are many other things and tactics that can help you to grow your blog. I am going to list some other useful articles with you, read all these articles to learn more about successful blogging.

Final Words

I hope now you know all the most important and necessary tactics to launch a successful blog. If you want to add anything, add your comments below.

Download Free eBook : Blogging For Profit

In this eBook you will learn how to start a blog that matters, tactics to increase blog traffic, email subscribers and earning.




we will not share your information with any one. We hate SPAM too.

Join Free Newsletter to Download Free ebook and receive latest WordPress tutorials, articles and tips directly in your email inbox. Of course, you can cancel your subscription at any time.

How to find out when my gmail account was created?

I was trying to find out when my gmail account was created and i found following soloution on google product forum.shared by Paviraad.




There is another way to find out the account creation date.


 Goto Gmail Settings --> Forwading and POP/IMAP.

In the POP Download section there will be 1. Status: POP is enabled for all mail that has arrived since xx/xx/xx.


Hopefully this will be it if you have not changed your POP setting after the account creation.

How to find out when my gmail account was created?








How To Delete Your Blog/site on Blogge/blogspot ?

Blogger.com is one of most popular blogging service online owned by Google, where you can quickly create blogs and publish content (articles, pictures, videos). One great thing about Blogger is that , it's free.

Sometimes you need to delete your blog for any reason. In this article i am going to show you how to delete you blog from Blogger/blogspot.

Step 1 :


Go to Blogger.com and Log in to your You will see list of your all blogs.

Step 2 :


Beside the blog you want to delete, click the drop-down menu to the right of the gray Post List icon. Select Setting as shown in image below.

Step 3 :



Now Click Other (under Settings) on the left side of the page.

How to delete blog on blogger/blogspot


Step 4 :


At the top of the page under "Blog tools" click Delete blog.



Step 5 :


Click delete this blog button.



When you will delete your blog, title of your blog will appear in Deleted Blogs section for a few days.

Undelete Restore Your Blog


With in a few days after deleting your blog, you have the option to UNDELETE/RESTOTE your blog.

So if you decide to undelete your blog, you can do it too.

Back Up your blog


before clicking Delete Thig Blog buton, you can export your blog as a back up plan. Later you can import this blog to a new blog. Just Click on DOWNLOAD BLOG button before clicking Delete This Blog button to back up your blog.

That's all folks. 


How to record desktop activity in animated GIFs ?

If you want to show some demo images to teach people how to do something then animate gif or video screen casts are best option, but video screencast are not always a good option, sometimes you just need to show some small steps, about how to do something and then animated gifs are best choice.

Here is a sample animated gif which shows how to use emmet to make to HTML coding workflow faster.

gifcam, licecap, create record animated gif
Created with LicaCap


if you are wondering how to recored your desktop activity as animated gif, don't worry i ahve a great soloution for you.


Record Screen as Animatef Gif Images with LicaCap


Just visit http://www.cockos.com/licecap/ and download LicaCap. It is one of great tool to create animated gif. it is very simple and easy to use. You can select screen area selectlocation to save file and just start typing or do whatever you want to do on your desktop and press Stop when you are finished.

Record Screen as Animatef Gif Images with GifCam


GifCam is another greta tool to record desktop activity as animated gif. You can download GifCam from http://blog.bahraniapps.com/?page_id=21

Here is  a demo image created with GifCam.

Created with GifCam


Hope this will be helpful for you.

How to create and register sidebar in WordPress Themes?

Sometimes you want to register more than one sidebars in your WordPress themes. It is very easy to register  sidebars.

open your functions.php and add search for following code in it.



function taousdesign_widgets_init() {
 register_sidebar( array(
  'name' => __( 'Sidebar', 'taousdesign' ),
  'id' => 'sidebar-1',
  'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  'after_widget' => '</aside>',
  'before_title' => '<h1 class="widget-title">',
  'after_title' => '</h1>',
 ) );
}


this code reegisters 1st sidebar in your theme. Now to register more than 1 sidebar or create more sidebars you can use following code.

function taousdesign_widgets_init() {
 register_sidebar( array(
  'name' => __( 'Sidebar', 'taousdesign' ),
  'id' => 'sidebar-1',
  'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  'after_widget' => '</aside>',
  'before_title' => '<h1 class="widget-title">',
  'after_title' => '</h1>',
 ) );
 
 
 register_sidebar( array(
  'name' => __( 'Sidebar Footer 1', 'taousdesign' ),
  'id' => 'sidebar-3',
  'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  'after_widget' => '</aside>',
  'before_title' => '<h1 class="widget-title">',
  'after_title' => '</h1>',
 ) );
 
 register_sidebar( array(
  'name' => __( 'Sidebar Footer 2', 'taousdesign' ),
  'id' => 'sidebar-4',
  'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  'after_widget' => '</aside>',
  'before_title' => '<h1 class="widget-title">',
  'after_title' => '</h1>',
 ) );
 
 register_sidebar( array(
  'name' => __( 'Sidebar Footer 3', 'taousdesign' ),
  'id' => 'sidebar-5',
  'before_widget' => '<aside id="%1$s" class="widget %2$s">',
  'after_widget' => '</aside>',
  'before_title' => '<h1 class="widget-title">',
  'after_title' => '</h1>
  ',
 ) );
}

i have registered 3 new sidebars in my theme. now to display these sidebars in your theme use following code.



for example if you want to show some sidebars in your theme footer, than you can use following code.

       <div class="wrapper-light">
     <div class="container">
         <div class="row">
             <footer id="colophon" class="site-footer" role="contentinfo">
                    <div class="span3">
                       <?php dynamic_sidebar( 'Sidebar Footer 1' ); ?>
                    </div><!-- .widget -->
                    
                    <div class="span3">
                       <?php dynamic_sidebar( 'Sidebar Footer 2' ); ?>
                    </div><!-- .widget -->
                    
                    <div class="span6">
                       <?php dynamic_sidebar( 'Sidebar Footer 3' ); ?>
                    </div><!-- .widget -->
                    
                </footer><!-- #colophon .site-footer -->
         </div> <!-- .row -->
     </div> <!-- .container -->
 </div> <!-- .wrapper-light -->

Here you can see registered sidebar in action. remember you need to add widgets in your sidebar from your wordpress dashboard. log in to your dasboard --> Appearence --> Widgets and just drag and drop your desired widgets to widgets areas.

How To Display Previous/Next Post in Category?

By default you see next/previous post link in your theme by publishing date. If you want to display link to previous/next post from same category, you can use following code with in your loop. For eexample you have a category "How to create a WordPress Theme" and you want to display links to something like following You can add following code in your wordpress theme's single.php file.
 
<p>This entry posted in <?php the_category(','); ?> series. Show all in <?php the_category(','); ?>   </p>

<ul class="pager">
  <li class="previous">
    <?php previous_post_link('%link', 'Previous in Series', TRUE); ?>
  </li>
  <li class="next">
    <?php next_post_link('%link', 'Next in Series' , TRUE); ?>
  </li>
</ul> 
 
. I have added above code in my themes single.php file and after adding above code single.php looks like following.
 
  <?php
/**
 * @package TaousDesign
 * @since TaousDesign 1.0
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
 <header class="entry-header">
  <h1 class="entry-title"><?php the_title(); ?></h1>

  <div class="entry-meta">
   <?php taousdesign_posted_on(); ?>

    <?php edit_post_link( __( 'Edit', 'taousdesign' ), '<span class="sep"> | </span><span class="edit-link">', '</span>' ); ?>
  </div><!-- .entry-meta -->
 </header><!-- .entry-header -->
  
  

 <div class="entry-content">

  <p>This entry posted in <?php the_category(','); ?> series. Show all in <?php the_category(','); ?>   </p>

  <ul class="pager">
    <li class="previous">
      <?php previous_post_link('%link', 'Previous in Series', TRUE); ?>
    </li>
    <li class="next">
      <?php next_post_link('%link', 'Next in Series' , TRUE); ?>
    </li>
  </ul> 

  <?php the_content(); ?>

  <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'taousdesign' ), 'after' => '</div>' ) ); ?>
 </div><!-- .entry-content -->

 <footer class="entry-meta">
  <?php
   /* translators: used between list items, there is a space after the comma */
   $category_list = get_the_category_list( __( ', ', 'taousdesign' ) );

   /* translators: used between list items, there is a space after the comma */
   $tag_list = get_the_tag_list( '', ', ' );

   if ( ! taousdesign_categorized_blog() ) {
    
   } else {
    // But this blog has loads of categories so we should probably display them here
    if ( '' != $tag_list ) {
     $meta_text = __( 'Tags :  %2$s.', 'taousdesign' );
    } else {
    }

   } // end check for categories on this blog

   printf(
    $meta_text,
    $category_list,
    $tag_list,
    get_permalink(),
    the_title_attribute( 'echo=0' )
   );
  ?>

  <?php edit_post_link( __( 'Edit', 'taousdesign' ), '<span class="edit-link">', '</span>' ); ?>
 </footer><!-- .entry-meta -->
</article><!-- #post-<?php the_ID(); ?> -->

 
. I hope this will word for you too. Note: i am using twitter bootstrap for styling. .pager is twitter bootstrap class for pagination styling.

How to create a page in wordpress theme to list post with thumbnails from any category ?

If want to create a seprate page to display some categories differently in your wordpress themes, you can do it easily. following code will display post titles only on your pages. You need to create a custom field when create a new page. Steps: 1.create a new page in wordpress? 2. write something on your page. 3. create a new custom fields, name it category and in value type category name from which you want to display posts. 4. select page from drop down in side bar and hit publish . 5. By using this code you can display post from any category on your page. for example you can create a category for training course and display all posy from that category with this page. create a new page in your theme and add following code in it. name your page something like page-course.php or anything you want.



<?php
/*
* This
Template Name: Course Page with Thumbnails
*/

get_header(); ?>

    <div id="primary" class="content-area span12">
      <div id="content" class="site-content course-page" role="main">

        <?php if (have_posts()) : while (have_posts()) : the_post();?>
           <div class="post">
             <h1 class="large-page-title" id="post-<?php the_ID(); ?>"><?php the_title();?></h1>
           <div class="entrytext">
            <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
           </div>
           </div>
           <?php endwhile; endif; ?>
           <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
          </div>

          <?php
          if (is_page() ) {
          $category = get_post_meta($posts[0]->ID, 'category', true);
          }
          if ($category) {
           $cat = get_cat_ID($category);
           $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
           $post_per_page = -1; // -1 shows all posts
           $do_not_show_stickies = 1; // 0 to show stickies
           $args=array(
            'category__in' => array($cat),
            'orderby' => 'date',
            'order' => 'ASC',
            'paged' => $paged,
            'posts_per_page' => $post_per_page,
            'ignore_sticky_posts' => $do_not_show_stickies
           );
           $temp = $wp_query; // assign orginal query to temp variable for later use  
           $wp_query = null;
           $wp_query = new WP_Query($args); ?>
          <ul class="thumbnails course-thumbnails clearfix">
                      <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
                      <li class="span4">
                          <a href="<?php the_permalink(); ?>" class="thumbnail">
                                            <?php
                                            // check if the post has a Post Thumbnail assigned to it.
                                            if ( has_post_thumbnail() ) {
                                                the_post_thumbnail();
                                            } 
                                         ?>
                                        </a>
                                        <h1 class="course-post-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'watan' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(''); ?></a></h1>
                      </li>
                      <?php endwhile; ?>
                    </ul>


            <div class="navigation">
             <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
             <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
            </div>
           <?php else : ?>
              <h2 class="center">Not Found</h2>
              <p class="center">Sorry, but you are looking for something that isn't here.</p>
              <?php get_search_form(); ?>

            <?php endif; 
            
            $wp_query = $temp; //reset back to original query
            
          } // if ($category)
          ?>

      </div><!-- #content .site-content -->
    </div><!-- #primary .content-area -->


<?php get_footer(); ?>


How to create a page in wordpress theme to list post from any category ?

If want to create a seprate page to display some categories differently in your wordpress themes, you can do it easily. following code will display post titles only on your pages. You need to create a custom field when create a new page. Steps: 1.create a new page in wordpress? 2. write something on your page. 3. create a new custom fields, name it category and in value type category name from which you want to display posts. 4. select page from drop down in side bar and hit publish . 5. By using this code you can display post from any category on your page. for example you can create a category for training course and display all posy from that category with this page. create a new page in your theme and add following code in it. name your page something like page-course.php or anything you want.


<?php
/*
Template Name: Course Page with post title only
*/

get_header(); ?>

    <div id="primary" class="content-area span8">
      <div id="content" class="site-content" role="main">

        <?php if (have_posts()) : while (have_posts()) : the_post();?>
           <div class="post">
           <h1 class="large-page-title" id="post-<?php the_ID(); ?>"><?php the_title();?></h1>
           <div class="entrytext">
            <?php the_content('<p class="serif">Read the rest of this page »</p>'); ?>
           </div>
           </div>
           <?php endwhile; endif; ?>
           <?php edit_post_link('Edit this entry.', '<p>', '</p>'); ?>
          </div>

          <?php
          if (is_page() ) {
          $category = get_post_meta($posts[0]->ID, 'category', true);
          }
          if ($category) {
           $cat = get_cat_ID($category);
           $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
           $post_per_page = -1; // -1 shows all posts
           $do_not_show_stickies = 1; // 0 to show stickies
           $args=array(
            'category__in' => array($cat),
            'orderby' => 'date',
            'order' => 'ASC',
            'paged' => $paged,
            'posts_per_page' => $post_per_page,
            'ignore_sticky_posts' => $do_not_show_stickies
           );
           $temp = $wp_query; // assign orginal query to temp variable for later use  
           $wp_query = null;
           $wp_query = new WP_Query($args); ?>
          <ul>
            <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
            <li>
                <h1 class="course-post-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'watan' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(''); ?></a></h1>
            </li>
            <?php endwhile; ?>
          </ul>


            <div class="navigation">
             <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
             <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
            </div>
           <?php else : ?>
              <h2 class="center">Not Found</h2>
              <p class="center">Sorry, but you are looking for something that isn't here.</p>
              <?php get_search_form(); ?>

            <?php endif; 
            
            $wp_query = $temp; //reset back to original query
            
          } // if ($category)
          ?>

      </div><!-- #content .site-content -->

    <?php get_sidebar(); ?>

    </div><!-- #primary .content-area -->


<?php get_footer(); ?>

How to make wordpress theme's Sidebar Widget Ready ?

it is very easy to make any wordpress theme's sidebar widget ready. in first step add following code to functions.php file if does not exists than create one.

<?php
register_sidebar();
?>


now add following code in your sidebar.php if does not exists than create one.

<aside>
<?php if ( !dynamic_sidebar() ) : ?>
<h2>Sidebar</h2>
<?php endif; ?>
</aside>


Congrats. You have a widget ready sidebar.

Code with some default and basic Styling.

for sidebar.php



<aside>
<?php if ( !dynamic_sidebar() ) : ?>
<h2>About</h2>
<p>This is my blog. i Love Wordpress.</p>
<?php wp_loginout(); ?>
<?php endif; ?>
</aside>


For functions.php



<?php
register_sidebar(array(
'before_widget' => '',
'after_widget' => '',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
?>


How to change wordpress log in picture on log in page ?

To change wordpress logo/image from your wordpress log in page sign to your control panel. Change wordpress log in image on log in page Go to File Manager ----> your wordpress instalation directory and then wp-admin ------> images directory/folder. Find and replace the image logo-login.png with your own image or logo. Save change and now go to your log in page to view your changes works or not. if not try to find out what you have done wrong. Tip: It whould be a good change not to remove original wordpress logo from images just rename original wordpress logo .e.g. logo-loginwp.png and name your own image logo-login.png, in case of any problem just rename your original wordpress logo.

How to change WordPress multisite admin user name ?

How to change Wordpress Admin user name in CPanel with phpmyadmin ?

Log in to your CPanel control panel, select phpmyadmin under Database section. Select your database to edit. 1. Select wp_users table it will bring all the users tables in a row. 2.  Edit  the row where the “user_login” column is equal to “admin”. 3. Change the text admin in user_login line with your desired name. 4. Also change  admin with your desired name in user_nicename and display_name line. Save changes and now log in with your new user name to wordpress dashboard and click on admin link you will see that Network admin link is not visible.

Network Admin disappeared and not visible after changing wordpress admin user name in wordpress database ?

If you have changed your wordpress admin user name in your wordpress database, and you have installed wordpress multi site and buddypress, you can encounter a problem that network Admin link is not visible and disappeared. Ii also faced same problem after changing wordpress admin name, Network Admin link was disappeared. Actually when you change wordpress admin user name and your have installed multi site and/or buddypress also, you should also update wp_sitemeta table and you have to add your new user name here. Here is a solution to bring your network admin link back. 1. Click on wp_sitemeta to open the table. 2. find the row site_admins, in my case it look like this.
site_admins a:1:{i:0;s:6:"testit";}
Click edit and you will see a tex box containing
a:1:{i:0;s:5:"admin";}
above line, change admin with the user name that you entered before and also change the number 5 it is a character count of user name, in my case my new user name is "testit" so charcater count is 6.
a:1:{i:0;s:6:"testit";}
so i replaced text admin with testit and number 5 with 6. Click on Go button to save changes and now log in again to your wordpress dashboard and hope fully you will see Netword Admin link again. if you have any suggestions please post in comments section.

How to change wordpress admin name with PHPMyAdmin in CPanel ?


When you install wordpress by default wordpress assigns admin as user name to log in to wordpress dashboard. If you dont like it and want to change it but don’t know how to change wordpress admin user name continue reading, it is little bit difficult for new wordpress usres because you will have to make some  changes in database, that may cause big problem including loss all your data if you don’t be carefull, so please back up your database first, and than make changes.
I am using CPanel and and use phpmyadmin to access my wordpress database, so here is the instructions how to access wordpress database in CPanel and make changes in  wordpress database using phpmyadmin.

  1.  First of all log in to your CPanel control panel.
  2. Click on phpmyadmin link in Database section. New phpmyadmin page will open click on your database name from the right sidebar you will see a list of all wordpress database tables,
  3.  Select wp_users table and click on browse, that will bring all the record listed in tables.
  4.  Select Admin and click Edit to change your admin name to your desired name.
  5.  Now you will see name Admin under the field name user_login just change admin with your desird name here.
  6. 6. Click on Go button to Save your changes.

Now go to your wordpress log in page and try to log in with Admin
and password, you will see an error it means your changes are saved now log in with your new user name and you will see your wordpress dashboard.

Note :
Before making these changes must back up your wordpress databaseother wise you may lost all you data.
It is a good decision to install wordpress on sub domain or sub directory for testing purpose and always try new tricks to your test instalation before making any changes to your live site.

How to solve ‘You do not have sufficient permissions to access this page.’ in WordPress


Network Admin menu is not Visible and disappeared  in wordpress Dashbaord ?

I had installed wordpress multi site and  i decided to change my wordpress Amin user name with something new because it is a good idea to have something different user name than default admin. In case of Admin bad people already know your user name and they just need to your password to damage your website.

Here is a guide How to Change WordPress Admin user name ?  but after changing my admin name Network Admin menu was disappeared from wordpress dashboard.
Even when i tried to access directly by typing
mydomain.com/wp-admin/network
network admin address in browser location bar i got following error
‘You do not have sufficient permissions to access this page.’
I tried to find the solution on google but i failed to ind the answer, then i decided to change my new wordpress Admin user name with previous name that was Admin. So i followed the instruction How to Change WordPress Admin user name ? and set user name as Admin.
After setting old user name Admin i logged in successfully to wordpress dashbaord with user name Admin and my password and Network Admin was visible again in dashboard.
Note :
I am not an  wordpress expert but i always try to learn new things about wordpress, if you have solution of this problem please share in comments.

Update :

If you WordPress multisite installed, than you will have to change WordPress multisite admin user name. Read How to change  WordPress multisite admin user name ?

How to Hide/Disable PHP errors in WAMP Servers Windows ?

How to Hide/Disable PHP errors in WAMP Servers Windows ?


To hide php errors on WAMP server in windows open php.ini file, find following line of code

error_reporting = E_ALL

and replace it with

error_reporting = E_ALL & ~E_NOTICE

all future php errors will be hide/disable.

How to Show/Enable PHP errors in WAMP Servers Windows ?


To enable or show php errors in WAMP Server just add following line

error_reporting = E_ALL

in php.ini file.

Where to find and How to open php.ini file in wamp server ?

To open php.ini file in WAMP Server go to system tray click om WAMP Server icon go to PHP and click php.ini file to open it from fly out menu.

How to install/Enable php_curl Extension On Wamp Server in Windows XP?

I was trying to install StatusNet a micro blogging software on my windows XP pc, but i got an error displaying

Cannot load required extension: curl

To install and run Status Net on my pc curl must be installed/enabled.
When i enable curl extension in wamp server, i was able to install Status Net successfully on my Windows Xp Pc.

How to enable Curl in Wamp Sever on Windows XP ?

To install/enable curl in WAMP go to status bar and right click on WAMP icon and go to PHP -->

PHP Extension and than find and right click on php_curl to enable/install.






Restart WAMP Server after enabling php_curl ?

Now restart all services and try to install Sataus Net again. You should be able to install successfully.




Watch Vudeo How to install/enable Curl in Wamp Sever on Windows XP ?



Hope it will work for you.

How to Increase Import File Size in Wamp Server for Wordpress ?.

How to Increase Import File Size in Wamp Server.


Increase Maximum file upload file size in WAMP to upload large files in WordPress ?


I have installed wordpress lacaly using WAMPServer in windows pc. When I tried to upload a file, wordpress displayed an error

successful outsourcing.pdf exceeds the maximum upload size for this site.

successful outsourcing.pdf is file name that i wanted to upload. It means i had to increase maximum upload size to upload large files more than 2MB.

Watch Video



To increase file upload size in WAMP Server i added following two lines at the bottom of PHP.ini file, So, If anything goes wrong i can easily find and remove these two lines.

You can find php.ini file in C:\wamp\bin\php\php5.3.5 in windows or just left click on Wamp icon in system Tray. Now go to PHP --> php.ini and open it.



and the following lines at the bottom of php.ini file.




upload_max_filesize = 32M
post_max_size = 32M


Now Go to system tray right click on WAMP Sever icon and click Restart All Services. Log into wordpress dashboarad and try uploading large file.
You should be able to upload files which are more than 2MB in size.

How to add facebook like and send button in blogger template ?

To add facebook like and send button in blogger go to design ---> Edit HTML and click on Expand Widget Template now find

<data:post.body/>

and add following code right after that line of code.



<!-- Facebook Like+Send script Start -->
<b:if cond='data:post.isFirstPost'>
<div id='fb-root'/>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) {return;}
  js = d.createElement(s); js.id = id;
  js.src = "http://connect.facebook.net/en_US/all.js#xfbml=1";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</b:if>
<!-- Facebook Like+Send script End -->
<!-- Facebook Like+Send button Start -->
<div style='float:left;padding:5px 5px 5px 0;'>
<fb:like colorscheme='light' expr:href='data:post.url' font='' layout='standard' send='true' show_faces='false' width='450'/>
</div>
<!-- Facebook Like+Send button End -->