Title: [Plugin: List category posts] Widget doesn&#039;t save settings &#8211; fixed
Last modified: August 20, 2016

---

# [Plugin: List category posts] Widget doesn't save settings – fixed

 *  [mr.perplexed](https://wordpress.org/support/users/mrperplexed/)
 * (@mrperplexed)
 * [14 years ago](https://wordpress.org/support/topic/plugin-list-category-posts-widget-doesnt-save-settings-fixed/)
 * Awesome plugin. Unfortunately I found the widget doesn’t appear to save the
    - Date
    - Author
    - Link to category
    - Excerpt
 * checkbox settings. However after a bit of fiddling around I found that it *does*
   save the settings, it just doesn’t *show* the checked status.
 * The fix is right at the end of lcp_widget_form.php: change the last four instances
   of
 * `<?php checked($instance['show_blah'], true ); ?>`
 * to
 * `<?php checked( (bool) $instance['show_blah'], true ); ?>`
 * [http://wordpress.org/extend/plugins/list-category-posts/](http://wordpress.org/extend/plugins/list-category-posts/)

Viewing 1 replies (of 1 total)

 *  [Keryn](https://wordpress.org/support/users/b-summers/)
 * (@b-summers)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-list-category-posts-widget-doesnt-save-settings-fixed/#post-2780017)
 * I was having this same problem, thanks for the fix!!

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: List category posts] Widget doesn't save settings – fixed’ is
closed to new replies.

 * ![](https://ps.w.org/list-category-posts/assets/icon-256x256.png?rev=2517221)
 * [List category posts](https://wordpress.org/plugins/list-category-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-category-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-category-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/list-category-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-category-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-category-posts/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Keryn](https://wordpress.org/support/users/b-summers/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-list-category-posts-widget-doesnt-save-settings-fixed/#post-2780017)
 * Status: not resolved