Forum Replies Created

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter jonm191

    (@jonm191)

    That one doesn’t seem to work with 3.0, but I did find a similiar one:

    https://www.ads-software.com/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!

    Thread Starter jonm191

    (@jonm191)

    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,

    Thread Starter jonm191

    (@jonm191)

    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?

    Thread Starter jonm191

    (@jonm191)

    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);
    }
    ?>
    Thread Starter jonm191

    (@jonm191)

    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,

    Thread Starter jonm191

    (@jonm191)

    BTW, I tried the “No SubCats Plugin”, but it shows no posts at all no matter if they subcategory or not…

    Thread Starter jonm191

    (@jonm191)

    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,

    Thread Starter jonm191

    (@jonm191)

    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)