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(); ?>