Title: Wrong category when editing
Last modified: August 22, 2016

---

# Wrong category when editing

 *  Resolved [djug](https://wordpress.org/support/users/djug/)
 * (@djug)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wrong-category-when-editing/)
 * Hi there,
 * When I edit any feed, I get the wrong category (I always get the first category
   in the list).
 * [https://wordpress.org/plugins/rss-post-importer/](https://wordpress.org/plugins/rss-post-importer/)

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

 *  Plugin Author [feedsapi](https://wordpress.org/support/users/feedsapi/)
 * (@feedsapi)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wrong-category-when-editing/#post-5692885)
 * Hi Djug,
 * Thank you very much for reaching out. Are you using the multiple-category selection
   option (enabled with a Full RSS Key) or the normal category selection ? I will
   try to replicate the issue and follow up.
 *  Thread Starter [djug](https://wordpress.org/support/users/djug/)
 * (@djug)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wrong-category-when-editing/#post-5693012)
 * I guess it is the “normal category selection ”
 *  [ip11166](https://wordpress.org/support/users/ip11166/)
 * (@ip11166)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wrong-category-when-editing/#post-5693091)
 * I have the same issue using a free version without multi-category selection. 
   I have assigned a subcategory to the fetched feeds, however the plugin changes
   it to the top level category regardless of my choice.
 *  Plugin Author [feedsapi](https://wordpress.org/support/users/feedsapi/)
 * (@feedsapi)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wrong-category-when-editing/#post-5693157)
 * Thanks folks,I did some tests and now see what you mean. This is most definitely
   not the way it should behave, I will sort this out and follow up. Thanks again
   for the head up.
 * Cheers,
    The RSS Post Importer Nerd
 *  [delacalera](https://wordpress.org/support/users/delacalera/)
 * (@delacalera)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wrong-category-when-editing/#post-5693159)
 * Found the issue in app/templates/feed-table-row.php line 244, where listing the
   categories and looking for the selected one, the selected is being passed as 
   an array when it should be a string according to wp_dropdown_categories in codex.
   
   I solved it by adding this “$f[‘category_id’] = $f[‘category_id’][0];” before
   the wp_dropdown_categories declaration. By the way, is there any reason why import
   limit max is set to 100?
 *  [ip11166](https://wordpress.org/support/users/ip11166/)
 * (@ip11166)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wrong-category-when-editing/#post-5693169)
 * Thank you Delacalera! Your fix really helped to solve the category issue.
 *  Plugin Author [feedsapi](https://wordpress.org/support/users/feedsapi/)
 * (@feedsapi)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/wrong-category-when-editing/#post-5693188)
 * Thank you folks, this should be fixed now (version 2.0.9)
 * [@delacalera](https://wordpress.org/support/users/delacalera/) , you rock! 🙂
 * Cheers,
    The RSS Post Importer Nerd

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

The topic ‘Wrong category when editing’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rss-post-importer_c49d6e.svg)
 * [RSS Post Importer](https://wordpress.org/plugins/rss-post-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rss-post-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rss-post-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/rss-post-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rss-post-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rss-post-importer/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [feedsapi](https://wordpress.org/support/users/feedsapi/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/wrong-category-when-editing/#post-5693188)
 * Status: resolved