Title: Little help about Query Posts
Last modified: August 18, 2016

---

# Little help about Query Posts

 *  [koe](https://wordpress.org/support/users/koe/)
 * (@koe)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/little-help-about-query-posts/)
 * Look, I have this page, which shows about five posts of a determined category,
   according with the page’s name.
 * So, if a page’s name its Television, I want it to show the posts of the Television
   category.
 * Tecnically, I’d have to make query posts, kinda like
 * <?php query_posts(‘showposts=5&category_name=XXXXXX’); ?>
 * What Im suposed to do in the XXXXXXX?
    I tried the the_title function, but it
   doesnt worked, and Im not so good with syntaxes.
 * Can somebody help me, please?

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

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/little-help-about-query-posts/#post-604855)
 * Don’t put posts on Pages – if you are talking about [Pages](http://codex.wordpress.org/Pages).
   They are not for that.
 * What is it exactly what you want to do. Don’t tell me **how** do you want to 
   do it… tell me what is the desired **end result**!
 *  Thread Starter [koe](https://wordpress.org/support/users/koe/)
 * (@koe)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/little-help-about-query-posts/#post-604960)
 * I have a website, about tv shows, right? ([http://www.overseries.com](http://www.overseries.com)
 * What I want, is a page, that will show the last posts of one single show, and
   other stuff like reviews about that show.
 * I just want this page, show all this stuff by the title of the page.
 * If the page its named Lost, then show all the last posts and reviews of the Lost
   category, you know?
 * its kinda like that…
    sorry about my english…
 *  Thread Starter [koe](https://wordpress.org/support/users/koe/)
 * (@koe)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/little-help-about-query-posts/#post-605018)
 * I just need to know what I have to do to query the posts by the page’s title.
 * **<?php query_posts(‘showposts=5&_category\_name=CODE TO CATCH THE TITLE_‘); ?
   >**
 *  Thread Starter [koe](https://wordpress.org/support/users/koe/)
 * (@koe)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/little-help-about-query-posts/#post-605024)
 * anyone please?
 *  Thread Starter [koe](https://wordpress.org/support/users/koe/)
 * (@koe)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/little-help-about-query-posts/#post-605037)
 * up
 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/little-help-about-query-posts/#post-605038)
 * I’m curious why you’re not using [Category_Templates](http://codex.wordpress.org/Category_Templates)?
   Seems like that might be a much easier way to go about this.
 *  Thread Starter [koe](https://wordpress.org/support/users/koe/)
 * (@koe)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/little-help-about-query-posts/#post-605044)
 * I’ll try this way…
 * thanks anyway

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

The topic ‘Little help about Query Posts’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 3 participants
 * Last reply from: [koe](https://wordpress.org/support/users/koe/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/little-help-about-query-posts/#post-605044)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
