Title: Importing Posts For Specific Pages
Last modified: August 19, 2016

---

# Importing Posts For Specific Pages

 *  Resolved [w3dgie](https://wordpress.org/support/users/w3dgie/)
 * (@w3dgie)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/importing-posts-for-specific-pages/)
 * Hey,
 * Basically what I’m looking for is to be able to have certain posts displayed 
   on certain pages from certain categories.
 * for example:
    Tutorials
 * I have a page called /tutorials/
 * I also have a post category called Tutorials and I would like all posts in the
   Parent & Child categories for Tutorials to be posted in the /tutorials/ page.
 * Once that is complete, I have another small question. Is it possible to exclude
   that category from showing up in the blog section of my site?
 * Here is what I have inside my page.php
 *     ```
       <?php
   
       $tutorials = "/tutorials/";
       $currentpage = $_SERVER['REQUEST_URI'];
   
       if($tutorials==$currentpage) {
       query_posts('cat=22');
       }
   
       else {
       the_content('<p class="serif">Read the rest of this page &raquo;</p>');
       }
   
       ?>
       ```
   
 * Please help, thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/importing-posts-for-specific-pages/#post-1256970)
 * WordPress native archiving process will do this for you if you just create categories.
   You don’t need [Pages](http://codex.wordpress.org/Pages). But if that’s the way
   you want to go read the Page of Posts example in the [Pages article](http://codex.wordpress.org/Pages).
 * If you want to put those categories as navigation items in your nav bar for examle,
   see this:
    [How to easily display links to both Pages and Categories in the blog navigation header?](http://codex.wordpress.org/FAQ_Layout_and_Design#How_to_easily_display_links_to_both_Pages_and_Categories_in_the_blog_navigation_header.3F)
 *  [Nutrawee](https://wordpress.org/support/users/zeally/)
 * (@zeally)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/importing-posts-for-specific-pages/#post-1256971)
 * [http://codex.wordpress.org/Template_Tags/query_posts](http://codex.wordpress.org/Template_Tags/query_posts)
   is the solution.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Importing Posts For Specific Pages’ is closed to new replies.

## Tags

 * [Import](https://wordpress.org/support/topic-tag/import/)
 * [posts](https://wordpress.org/support/topic-tag/posts/)
 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)
 * [the_content](https://wordpress.org/support/topic-tag/the_content/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [Nutrawee](https://wordpress.org/support/users/zeally/)
 * Last activity: [16 years, 6 months ago](https://wordpress.org/support/topic/importing-posts-for-specific-pages/#post-1256971)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
