jonm191
Forum Replies Created
-
Forum: Plugins
In reply to: Change "Edit Posts" screen to list posts within categories?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!
Forum: Fixing WordPress
In reply to: How to list sub-categories in page content?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
In reply to: How to list sub-categories in page content?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
In reply to: How to list sub-categories in page content?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
In reply to: How to list sub-categories in page content?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
In reply to: Have links to subcategories oBTW, I tried the “No SubCats Plugin”, but it shows no posts at all no matter if they subcategory or not…
Forum: Fixing WordPress
In reply to: can’t log in to admin in a frameAlright 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
In reply to: How to insert uploaded video into posts?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!