Title: Variable showposts from administration
Last modified: August 31, 2016

---

# Variable showposts from administration

 *  [Adam Michael](https://wordpress.org/support/users/adammichael/)
 * (@adammichael)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/variable-showposts-from-administration/)
 * Hello world,
    I have a problem with showposts. Code: … `$recent = new WP_Query('
   showposts=10'); while($recent->have_posts()) : $recent->the_post();` …
 * and I would like to change the number of “showposts” from the administration.
 * I found the instruction how to create widget in /wp-admin/
    but i dont know how
   to create a simple form to change and save number of showed posts.
 * Thank you for your help.

Viewing 1 replies (of 1 total)

 *  Thread Starter [Adam Michael](https://wordpress.org/support/users/adammichael/)
 * (@adammichael)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/variable-showposts-from-administration/#post-7265041)
 * Can anybody help me, please?

Viewing 1 replies (of 1 total)

The topic ‘Variable showposts from administration’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Adam Michael](https://wordpress.org/support/users/adammichael/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/variable-showposts-from-administration/#post-7265041)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
