Title: ronvil's Replies | WordPress.org

---

# ronvil

  [  ](https://wordpress.org/support/users/ronvil/)

 *   [Profile](https://wordpress.org/support/users/ronvil/)
 *   [Topics Started](https://wordpress.org/support/users/ronvil/topics/)
 *   [Replies Created](https://wordpress.org/support/users/ronvil/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/ronvil/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/ronvil/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/ronvil/engagements/)
 *   [Favorites](https://wordpress.org/support/users/ronvil/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Download Monitor] Cannot modify header information](https://wordpress.org/support/topic/cannot-modify-header-information-166/)
 *  Thread Starter [ronvil](https://wordpress.org/support/users/ronvil/)
 * (@ronvil)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/cannot-modify-header-information-166/#post-13575216)
 * it’s working now. i needed to update the php, wordpress installation and the 
   plugin as well to get it to work.
 * thanks
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Excluding a category](https://wordpress.org/support/topic/excluding-a-category-1/)
 *  [ronvil](https://wordpress.org/support/users/ronvil/)
 * (@ronvil)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/excluding-a-category-1/#post-1435511)
 * Sorry for posting again. i would like to clarify my question above.
 * for example, i have the following categories
    1. Category 1
 *  1. Category 1.1
    2. Category 1.2
    3. Category 2
 * Then, under the post title, i want to put a link to the category archive for “
   Category 1.1” ONLY and not have the other categories of the same post appear.
   How do i do this? thanks again!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Excluding a category](https://wordpress.org/support/topic/excluding-a-category-1/)
 *  [ronvil](https://wordpress.org/support/users/ronvil/)
 * (@ronvil)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/excluding-a-category-1/#post-1435510)
 * Sorry, but i’m just beginning to customize wordpress themes. how can i edit
 *     ```
       <?php
       foreach((get_the_category()) as $category) {
           if (!in_array($category->cat_name,array('cat1_to_exclude','cat2_to_exclude','cat3_to_exclude')) ) {
           echo '<a href="' . get_category_link( $category->term_id ) . '" title="' . sprintf( __( "View all posts in %s" ), $category->name ) . '" ' . '>' . $category->name.'</a> ';
       }
       }
       ?>
       ```
   
 * to exlude the categories that i do not want to appear? Thank you in advance!

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