Title: Help to modyfication code
Last modified: August 22, 2016

---

# Help to modyfication code

 *  [aiiasse](https://wordpress.org/support/users/aiiasse/)
 * (@aiiasse)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/help-to-modyfication-code/)
 * Hello. I would like to code took into account the children’s category, rather
   than just the main category.
 *     ```
       <?php if ( in_category('categoryname') ) { ?>
       <?php }
       ```
   
 * Help me 🙁

Viewing 1 replies (of 1 total)

 *  [Radices](https://wordpress.org/support/users/radices/)
 * (@radices)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/help-to-modyfication-code/#post-5691394)
 * I believe you just need to put the child category name in there.
 * [http://codex.wordpress.org/Function_Reference/in_category#Testing_if_a_post_is_in_a_descendant_category](http://codex.wordpress.org/Function_Reference/in_category#Testing_if_a_post_is_in_a_descendant_category)

Viewing 1 replies (of 1 total)

The topic ‘Help to modyfication code’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Radices](https://wordpress.org/support/users/radices/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/help-to-modyfication-code/#post-5691394)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
