Title: how do you show certain posts using a plugin
Last modified: August 19, 2016

---

# how do you show certain posts using a plugin

 *  [alsmith](https://wordpress.org/support/users/alsmith/)
 * (@alsmith)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/how-do-you-show-certain-posts-using-a-plugin/)
 * What code would you use in a plugin to show only ceratin posts?
    I want the results
   to be the same as ?cat=#
 * In my plugin I am doing a search and want the return to present like the ?cat
   =# does but I would need to specify the post ids.

The topic ‘how do you show certain posts using a plugin’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [alsmith](https://wordpress.org/support/users/alsmith/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/how-do-you-show-certain-posts-using-a-plugin/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
