Title: jonm191's Replies | WordPress.org

---

# jonm191

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

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

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Change "Edit Posts" screen to list posts within categories?](https://wordpress.org/support/topic/change-edit-posts-screen-to-list-posts-within-categories/)
 *  Thread Starter [jonm191](https://wordpress.org/support/users/jonm191/)
 * (@jonm191)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/change-edit-posts-screen-to-list-posts-within-categories/#post-1581775)
 * That one doesn’t seem to work with 3.0, but I did find a similiar one:
 * [http://wordpress.org/extend/plugins/wp-category-manager/](http://wordpress.org/extend/plugins/wp-category-manager/)
 * Which is close to what I am looking for, although it would be better if this 
   changed the ‘Edit Posts’ screen and/or had more a tree view rather than dropdown
   box
 * But better than nothing, Thanks!
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to list sub-categories in page content?](https://wordpress.org/support/topic/how-to-list-sub-categories-in-page-content/)
 *  Thread Starter [jonm191](https://wordpress.org/support/users/jonm191/)
 * (@jonm191)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/how-to-list-sub-categories-in-page-content/#post-1258453)
 * Ok I finally got it, here is my final code for those who are interested:
 *     ```
       <?php
       if(is_category()) {
   
       	$breakpoint = 0;
       	$thiscat = get_term( get_query_var('cat') , 'category' );
       	$subcategories = get_terms( 'category' , 'parent='.get_query_var('cat') );
   
       	$items='';
       	if(!empty($subcategories)) {
       		foreach($subcategories as $subcat) {
       			if($thiscat->term_id == $subcat->term_id) $current = ' current-cat'; else $current = '';
       		$items .= '
       		<div class="post-clip">
       		<span class="clip-title"><a href="'.get_category_link( $subcat->term_id ).'" title="">'.$subcat->name.'</a></span><p><a href="'.get_category_link( $subcat->term_id ).'" title="">'.$subcat->description.'</a></p>
       		</div>';
       		}
       		echo "$items";
       	}
       	unset($subcategories,$subcat,$thiscat,$items);
       }
       ?>
       ```
   
 * Cheers,
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to list sub-categories in page content?](https://wordpress.org/support/topic/how-to-list-sub-categories-in-page-content/)
 *  Thread Starter [jonm191](https://wordpress.org/support/users/jonm191/)
 * (@jonm191)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/how-to-list-sub-categories-in-page-content/#post-1258450)
 * However, this still shows the sub categories on the sub-categories, which I do
   not like, any idea how using that code, to not show anything when you are in 
   the subcategory?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to list sub-categories in page content?](https://wordpress.org/support/topic/how-to-list-sub-categories-in-page-content/)
 *  Thread Starter [jonm191](https://wordpress.org/support/users/jonm191/)
 * (@jonm191)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/how-to-list-sub-categories-in-page-content/#post-1258446)
 * actually I finally found the code I was looking for:
 *     ```
       <?php
       if(is_category()) {
   
       	$breakpoint = 0;
       	$thiscat = get_term( get_query_var('cat') , 'category' );
       	$subcategories = get_terms( 'category' , 'parent='.get_query_var('cat') );
   
       	if(empty($subcategories) && $thiscat->parent != 0) {
       		$subcategories = get_terms( 'category' , 'parent='.$thiscat->parent.'' );
       	}
   
       	$items='';
       	if(!empty($subcategories)) {
       		foreach($subcategories as $subcat) {
       			if($thiscat->term_id == $subcat->term_id) $current = ' current-cat'; else $current = '';
       			$items .= '
       			<li class="cat-item cat-item-'.$subcat->term_id.$current.'">
       				<a href="'.get_category_link( $subcat->term_id ).'" title="'.$subcat->description.'">'.$subcat->name.' ('.$subcat->count.' posts)</a>
       			</li>';
       		}
       		echo "<ul>$items</ul>";
       	}
       	unset($subcategories,$subcat,$thiscat,$items);
       }
       ?>
       ```
   
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to list sub-categories in page content?](https://wordpress.org/support/topic/how-to-list-sub-categories-in-page-content/)
 *  Thread Starter [jonm191](https://wordpress.org/support/users/jonm191/)
 * (@jonm191)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/how-to-list-sub-categories-in-page-content/#post-1258444)
 * Yes, I have been looking through this.
 * The problem is I can’t figure out how to display just the subcategories of the
   current category., without using a catid.
 * Thanks,
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Have links to subcategories o](https://wordpress.org/support/topic/have-links-to-subcategories-o/)
 *  Thread Starter [jonm191](https://wordpress.org/support/users/jonm191/)
 * (@jonm191)
 * [16 years, 6 months ago](https://wordpress.org/support/topic/have-links-to-subcategories-o/#post-1256368)
 * BTW, I tried the “No SubCats Plugin”, but it shows no posts at all no matter 
   if they subcategory or not…
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [can’t log in to admin in a frame](https://wordpress.org/support/topic/cant-log-in-to-admin-in-a-frame/)
 *  Thread Starter [jonm191](https://wordpress.org/support/users/jonm191/)
 * (@jonm191)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/cant-log-in-to-admin-in-a-frame/#post-1132631)
 * Alright thanks,
 * I will contact network solutions and hopefully they can handle this.
 * I don’t understand why it is nesting the entire site in a frame, bad setup on
   this hosting.
 * -Cheers,
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [How to insert uploaded video into posts?](https://wordpress.org/support/topic/how-to-insert-uploaded-video-into-posts/)
 *  Thread Starter [jonm191](https://wordpress.org/support/users/jonm191/)
 * (@jonm191)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/how-to-insert-uploaded-video-into-posts/#post-1124911)
 * Is the video option suppose to embed it for you, or is it just a way to upload
   video and url to it?
 * Help me understand
 * Thanks again!

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