Title: hiding categories / modifying functions.php
Last modified: September 8, 2019

---

# hiding categories / modifying functions.php

 *  Resolved [zabriskie73](https://wordpress.org/support/users/zabriskie73/)
 * (@zabriskie73)
 * [7 years ago](https://wordpress.org/support/topic/hiding-categories-modifying-functions-php/)
 * Hi,
 * Looking for hours a way to hide some ID categories on all posts (i’m using those
   categories only to manage my posts on dashboard).
    Tried plug-ins to do that,
   but not worked.
 * I’m not a coder, but i saw possible solutions by adding some php code in functions.
   php file.
    I’m not working on a child theme. So, what happen to the next OceanWP
   update ? Will my eventually custom code added to function.php will be erased ?
 * Any idea ?
    Thanks !
    -  This topic was modified 7 years ago by [zabriskie73](https://wordpress.org/support/users/zabriskie73/).

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

 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [7 years ago](https://wordpress.org/support/topic/hiding-categories-modifying-functions-php/#post-11913331)
 * Hello,
 * Try to use the ‘Ultimate Category Excluder’ plugin to do this. I tested it and
   it works great.
 *  Thread Starter [zabriskie73](https://wordpress.org/support/users/zabriskie73/)
 * (@zabriskie73)
 * [7 years ago](https://wordpress.org/support/topic/hiding-categories-modifying-functions-php/#post-11913644)
 * I did it. Does not work. Maybe because i use Elementor.
 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [7 years ago](https://wordpress.org/support/topic/hiding-categories-modifying-functions-php/#post-11922192)
 * It could be. I tested the plugin and it hides the category from the frontend.
 *  Thread Starter [zabriskie73](https://wordpress.org/support/users/zabriskie73/)
 * (@zabriskie73)
 * [7 years ago](https://wordpress.org/support/topic/hiding-categories-modifying-functions-php/#post-11922210)
 * Anyway, i found a PHP code that works perfectly to hide categories as i want.
   
   But, is the update of OceanWP automatic or manual ? I don’t want to be surprised,
   because for each update, i have to check if my custom PHP code remains on functions.
   php file, or if i have to paste it again on the updated file.
 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [7 years ago](https://wordpress.org/support/topic/hiding-categories-modifying-functions-php/#post-11922457)
 * Try to add the code in the oceanwp child theme’s functions.php file. The update
   will not erase any code if you have added in the child theme.
 *  Thread Starter [zabriskie73](https://wordpress.org/support/users/zabriskie73/)
 * (@zabriskie73)
 * [7 years ago](https://wordpress.org/support/topic/hiding-categories-modifying-functions-php/#post-11922471)
 * I know that but meanwhile I build it, the parent theme update is automatic or
   i can decide when activate it ?
    -  This reply was modified 7 years ago by [zabriskie73](https://wordpress.org/support/users/zabriskie73/).
 *  [Amit Singh](https://wordpress.org/support/users/apprimit/)
 * (@apprimit)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/hiding-categories-modifying-functions-php/#post-11935726)
 * You will see the update notification within the dashboard. Update it as per your
   need.
 *  Thread Starter [zabriskie73](https://wordpress.org/support/users/zabriskie73/)
 * (@zabriskie73)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/hiding-categories-modifying-functions-php/#post-11942484)
 * Thanks for the information !

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

The topic ‘hiding categories / modifying functions.php’ is closed to new replies.

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

## Tags

 * [category](https://wordpress.org/support/topic-tag/category/)
 * [function.php](https://wordpress.org/support/topic-tag/function-php/)
 * [hide](https://wordpress.org/support/topic-tag/hide/)

 * 8 replies
 * 2 participants
 * Last reply from: [zabriskie73](https://wordpress.org/support/users/zabriskie73/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/hiding-categories-modifying-functions-php/#post-11942484)
 * Status: resolved