Title: Call Pages instead Posts
Last modified: August 20, 2016

---

# Call Pages instead Posts

 *  Resolved [deathlynotes](https://wordpress.org/support/users/deathlynotes/)
 * (@deathlynotes)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/call-pages-instead-posts/)
 * Hi.
    I have a theme named Africa, and there is a code at magazine format which
   calls posts, but I need it calls pages. I have Map Categories to Pages plugin
   from Amit Verma installed. So, I want call a specific category, and show pages
   which is listed under that specific category. The code that I have to change 
   is: `<?php $recent = new WP_Query("cat=".$featured5_bottom_left."&showposts=".
   $featured5_top_num); while($recent->have_posts()) : $recent->the_post();?>` Please,
   someone can help? And yes, I looked at forum, google, etc. Thanks and have a 
   nice week Lee

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

 *  [david.bailey](https://wordpress.org/support/users/davidbailey-1/)
 * (@davidbailey-1)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/call-pages-instead-posts/#post-2879816)
 * `<?php $recent = new WP_Query("cat=".$featured5_bottom_left."&showposts=".$featured5_top_num."&
   post_type=page"); while($recent->have_posts()) : $recent->the_post();?>`
 * [http://codex.wordpress.org/Class_Reference/WP_Query](http://codex.wordpress.org/Class_Reference/WP_Query)
 * Try this.
 *  Thread Starter [deathlynotes](https://wordpress.org/support/users/deathlynotes/)
 * (@deathlynotes)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/call-pages-instead-posts/#post-2879819)
 * Hi
    Thanks for your answer. Well, your code works, but just for only one category(
   cat=12). Its 4 blocks, which have categories 4, 12, 14 and 8, but only cat 12
   worked. I tried name WP_Query(“cat=14” but it didn’t work. But thank you again.
   I will read about wp_query. =)
 *  [david.bailey](https://wordpress.org/support/users/davidbailey-1/)
 * (@davidbailey-1)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/call-pages-instead-posts/#post-2879820)
 * I assumed the rest of the query you wrote was what you were going for. If you
   want all the categories I would remove the category specifier, or you should 
   probably be able to add an array of values.
 *  Thread Starter [deathlynotes](https://wordpress.org/support/users/deathlynotes/)
 * (@deathlynotes)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/call-pages-instead-posts/#post-2879821)
 * Hey
    It did work! I’m just stupid, you know… I forgot to change block positions
   in code (left, bottom, top, right). LOL Now it’s all working. Thank you, David!
   You saved my life. =)
 *  [david.bailey](https://wordpress.org/support/users/davidbailey-1/)
 * (@davidbailey-1)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/call-pages-instead-posts/#post-2879822)
 * No problem

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

The topic ‘Call Pages instead Posts’ is closed to new replies.

 * 5 replies
 * 2 participants
 * Last reply from: [david.bailey](https://wordpress.org/support/users/davidbailey-1/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/call-pages-instead-posts/#post-2879822)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
