Title: Creating pages with category posts
Last modified: September 1, 2016

---

# Creating pages with category posts

 *  [luzweekenstroo](https://wordpress.org/support/users/luzweekenstroo/)
 * (@luzweekenstroo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/creating-pages-with-category-posts/)
 * Dear reader,
 * I’m trying to create pages that show the posts of a specific category. I need
   pages for that, because I use the featured images of these pages elswhere on 
   my website.
 * So far, I’ve tried a couple of different plugins for this, but they didn’t realy
   get me anywere. If you know a good plugin that will do this, please let me know.
 * Since the plugins didn’t work, I made a custom page template that shows the posts
   of the catogory with the same name as the page title. Still follow? I used the
   following code:
 *     ```
       <?php query_posts('category_name='.get_the_title()); ?>
       <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
               <div>
               <h1><?php the_title(); ?></h1>
               <p><?php the_content(); ?></p>
               </div>
       <?php endwhile; else: ?>no match<?php endif; ?>
       ```
   
 * There is a problem with this setup. It will first show all of my featured images,
   post titles and post dates, and than all of my post contents. The reader is nog
   able to see what content belongs to what featured image/ title. Does anyone know
   how to fix this?
    Also, I would like there to be a limited amount of posts, forinstance
   5. Would anyone know how to do this?
 * Again, I will also be perfectly happy with a proper working plugin that shows
   my posts WITH featured image, title and date.
 * Thank you!
 * [https://wordpress.org/themes/page/](https://wordpress.org/themes/page/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [luzweekenstroo](https://wordpress.org/support/users/luzweekenstroo/)
 * (@luzweekenstroo)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/creating-pages-with-category-posts/#post-7593969)
 * Here is an example of what happens to the template page: [http://zoalshetlijkt.nl/over-tentoonstellingen/](http://zoalshetlijkt.nl/over-tentoonstellingen/).
 * Page- and categorytitle are both ‘over-tentoonstellingen’

Viewing 1 replies (of 1 total)

The topic ‘Creating pages with category posts’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/page/1.03/screenshot.png)
 * Page
 * [Support Threads](https://wordpress.org/support/theme/page/)
 * [Active Topics](https://wordpress.org/support/theme/page/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/page/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/page/reviews/)

## Tags

 * [categories](https://wordpress.org/support/topic-tag/categories/)
 * [page](https://wordpress.org/support/topic-tag/page/)
 * [template](https://wordpress.org/support/topic-tag/template/)

 * 1 reply
 * 1 participant
 * Last reply from: [luzweekenstroo](https://wordpress.org/support/users/luzweekenstroo/)
 * Last activity: [9 years, 9 months ago](https://wordpress.org/support/topic/creating-pages-with-category-posts/#post-7593969)
 * Status: not resolved