title: Using paginate links on post archive page
body: <p>I would like to use paginate links on my archive page where I list all the posts from the website.</p>
  
  <p>I would like to show only 10 posts per page and in the bottom to have OLDER POSTS link to display older posts on next page.</p>
  
  <p>I tried adding pagginate function at the end but nothing shows up to me in the front end so I must be doing something wrong.</p>
  
  <p>My current code looks like this:</p>
  
  
  
  
  
  <pre><code>    &lt;div class="container"&gt;
          &lt;div class="content col-md-9"&gt;
              &lt;div class="home-content"&gt;          
  
                  &lt;!-- Show posts --&gt;
                  &lt;?php $posts = get_posts(array('category'=&gt;'', 'posts_per_page'=&gt;10)); ?&gt;
                  &lt;?php if($posts) { ?&gt;
                  &lt;?php foreach ($posts as $post) { setup_postdata($post); ?&gt;
                  &lt;div style="float:left; margin:1%;"&gt;
                  &lt;?php 
                  if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it.
                      the_post_thumbnail( 'thumbnail', array( 'class' =&gt; 'img-post')); // show featured image
                  }
  
                  ?&gt;
                  &lt;/div&gt;
                  &lt;h1 class="post-thumb"&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h1&gt;
                  &lt;h4&gt;Category: &lt;?php the_category(', '); ?&gt;&lt;/h4&gt;
                  &lt;p&gt;&lt;?php the_excerpt(); ?&gt;&lt;/p&gt;
                  &lt;hr style="margin-bottom:5%"&gt;
                  &lt;?php } wp_reset_postdata(); ?&gt;
                  &lt;?php } else { ?&gt;
                  &lt;p&gt;&lt;?php _e('Sorry, no posts matched your criteria.'); ?&gt;&lt;/p&gt;
                  &lt;?php } ?&gt;
                  &lt;?php if (function_exists("emm_paginate")) {
                      emm_paginate();
                  } ?&gt;
  
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="col-md-3 sidebar unstyled"&gt;
                  &lt;?php dynamic_sidebar( 'home1' );   ?&gt;
          &lt;/div&gt;
          &lt;div class="col-md-3 sidebar unstyled sidebar-space"&gt;
                  &lt;?php dynamic_sidebar( 'home2' );   ?&gt;
          &lt;/div&gt;
          &lt;div class="col-md-3 sidebar unstyled sidebar-space"&gt;
                  &lt;?php dynamic_sidebar( 'articles1' );   ?&gt;
          &lt;/div&gt;
  
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>