Title: Same category names
Last modified: April 30, 2020

---

# Same category names

 *  Resolved [stavroch](https://wordpress.org/support/users/stavroch/)
 * (@stavroch)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/same-category-names/)
 * I have 20 sub-category names which are the same with one other main category.
   How can I understand which category is?
 * ex.
    Category-1: t-shirt subcategories: red, blue, yellow
 * Category-2: car
    subcategories: red, blue, yellow.
 * Can you display the category id next to category name?

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

 *  Thread Starter [stavroch](https://wordpress.org/support/users/stavroch/)
 * (@stavroch)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/same-category-names/#post-12761141)
 * I know the id of subcategories if that will help?
 *  Thread Starter [stavroch](https://wordpress.org/support/users/stavroch/)
 * (@stavroch)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/same-category-names/#post-12773349)
 * I found the way by using the [https://codex.wordpress.org/Conditional_Tags](https://codex.wordpress.org/Conditional_Tags)
 *  Thread Starter [stavroch](https://wordpress.org/support/users/stavroch/)
 * (@stavroch)
 * [6 years ago](https://wordpress.org/support/topic/same-category-names/#post-12832569)
 * It is not right what is the display.
 * In logic tab I type the ”
    in_category( array( 99,36,40,34,121,120,101,100,38,105,106,102,122,35,107,128,108,109,123,50,112,129,125,124,51))”
 * It get the whole categories that is displayed on the field “Choose category (
   optional): ”
 * Can you help me please?
 *  [llavillaccama](https://wordpress.org/support/users/llavillaccama/)
 * (@llavillaccama)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/same-category-names/#post-13046717)
 * Hello [@stavroch](https://wordpress.org/support/users/stavroch/)
 * How did you solve it?
 * Regards.
 *  Thread Starter [stavroch](https://wordpress.org/support/users/stavroch/)
 * (@stavroch)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/same-category-names/#post-13047645)
 * Hello [@llavillaccama](https://wordpress.org/support/users/llavillaccama/) I 
   have not find any solution.
 * I delete the categories that I dont need. Is not of what I would like but is 
   the only way that I can work now, until they sent us their solution.

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

The topic ‘Same category names’ is closed to new replies.

 * ![](https://ps.w.org/widget-options/assets/icon-256x256.gif?rev=2513739)
 * [Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets](https://wordpress.org/plugins/widget-options/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/widget-options/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/widget-options/)
 * [Active Topics](https://wordpress.org/support/plugin/widget-options/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/widget-options/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/widget-options/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [stavroch](https://wordpress.org/support/users/stavroch/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/same-category-names/#post-13047645)
 * Status: resolved