Title: Cannot select category in &quot;Posts Widget&quot;
Last modified: August 30, 2016

---

# Cannot select category in "Posts Widget"

 *  Resolved [iDoraemon](https://wordpress.org/support/users/idoraemon/)
 * (@idoraemon)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-select-category-in-posts-widget/)
 * In “Posts Widget”, there should be function that allow us to choose one or several
   categories that show on the front page. But recently I found I am unable to specify
   the categories.
 * One I selected a category, the tick automatically goes off. Consequently, I am
   not able to choose categories that show on front page.
 * (I tried to deactivate all plugin.)
 * [http://yanpan.me](http://yanpan.me)

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

 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-select-category-in-posts-widget/#post-6467221)
 * [@idoraemon](https://wordpress.org/support/users/idoraemon/)
 * This is a known bug and will be fixed in the next version. Thanks for your patience
   🙂
 * You can fix it by editing the front-posts.php from wp-content/themes/optimizer/
   frontpage/widgets and replace this line:
 * `$instance['category'] = strip_tags($new_instance['category']);`
 * with this:
 * `$instance['category'] = $new_instance['category'];`
 * Regards
 *  Thread Starter [iDoraemon](https://wordpress.org/support/users/idoraemon/)
 * (@idoraemon)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-select-category-in-posts-widget/#post-6467248)
 * Thanks so much! it works, simple and nice.
 *  [WWW_Marieke](https://wordpress.org/support/users/www_marieke/)
 * (@www_marieke)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-select-category-in-posts-widget/#post-6467421)
 * Thanks for the answer!
    Where can I find ‘front-posts.php’? I have searched in
   themes > editor, but I can’t find it.
 * (Sorry, I’m not that good with HTML…)
 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-select-category-in-posts-widget/#post-6467426)
 * Hi
 * login to your server with FTP client. If you don’t know how it access it with
   FTP, try this plugin:
    [http://wordpress.org/plugins/solid-code-theme-editor/](http://wordpress.org/plugins/solid-code-theme-editor/)
 * Thanks
 *  [WWW_Marieke](https://wordpress.org/support/users/www_marieke/)
 * (@www_marieke)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-select-category-in-posts-widget/#post-6467436)
 * YES it’s okay now! (The plugin is great!) Thanks!!

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

The topic ‘Cannot select category in "Posts Widget"’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/optimizer/0.7.4/screenshot.png)
 * Optimizer
 * [Support Threads](https://wordpress.org/support/theme/optimizer/)
 * [Active Topics](https://wordpress.org/support/theme/optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/optimizer/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [WWW_Marieke](https://wordpress.org/support/users/www_marieke/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/cannot-select-category-in-posts-widget/#post-6467436)
 * Status: resolved