Title: This string doesn&#039;t wok
Last modified: August 20, 2016

---

# This string doesn't wok

 *  Resolved [alvarols](https://wordpress.org/support/users/alvarols/)
 * (@alvarols)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/this-string-doesnt-wok/)
 * I’m trying to implement this on a archive.php, but it don’t show me the last 
   post on the date what i’m looking for:
 * <?php query_posts($query_string . ‘cat=3&posts_per_page=1’); ?>
 * Thanks

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

 *  [Konstantinos Kouratoras](https://wordpress.org/support/users/kouratoras/)
 * (@kouratoras)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/this-string-doesnt-wok/#post-3588221)
 * Which post does it fetch?
 *  Thread Starter [alvarols](https://wordpress.org/support/users/alvarols/)
 * (@alvarols)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/this-string-doesnt-wok/#post-3588314)
 * I finally just solved it.
 * This is wrong:
    <?php query_posts($query_string . ‘cat=3&posts_per_page=1’); ?
   >
 * This is right:
    <?php query_posts($query_string . ‘&cat=3&posts_per_page=1’);?
   >

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

The topic ‘This string doesn't wok’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [alvarols](https://wordpress.org/support/users/alvarols/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/this-string-doesnt-wok/#post-3588314)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
