Title: Theme not using functions.php?
Last modified: February 28, 2019

---

# Theme not using functions.php?

 *  [ecojournalist](https://wordpress.org/support/users/ecojournalist/)
 * (@ecojournalist)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/theme-not-using-functions-php/)
 * Hello!
 * I’m editing my functions.php page, and it does not seem to be running the code
   that I’ve pasted into the bottom of it:
 * function my_home_category( $query ) {
    if ( $query->is_home() && $query->is_main_query()){
   $query->set( ‘cat’, ‘3’); } } add_action( ‘pre_get_posts’, ‘my_home_category’);
 * I’m trying to show only one category post on the home page, category id 3. Any
   suggestions?
 * thanks!
    Jacob

The topic ‘Theme not using functions.php?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/new-zea/1.1.0/screenshot.png)
 * New Zea
 * [Support Threads](https://wordpress.org/support/theme/new-zea/)
 * [Active Topics](https://wordpress.org/support/theme/new-zea/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/new-zea/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/new-zea/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [ecojournalist](https://wordpress.org/support/users/ecojournalist/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/theme-not-using-functions-php/)
 * Status: not resolved