show posts names and links in the sidebar list as categories child

Well the simplest way I can think of is something like this… <ul class=”categories”> <?php $categories = get_categories(); //can add parameters here to swtich the order, etc; if(!empty(categories)): foreach($categories as $i => $category): ?> <li class=”category”> <span><?php echo $category->name ?></span> <?php query_posts(‘posts_per_page=-1&cat=” . $category->term_id); if ( have_posts() ) : ?> <ul class=”posts”> <?php while ( … Read more

Is it possible to post with Word 2007 via XML-RPC and limit categories by user?

As per comment it is hard to answer this without knowing specifics of setup. In general there are two generic approaches to this: Prevent unwanted terms from being returned by filtering get_terms_args or other available hooks. Prevent unwanted terms from being saved (or cancel them right after) by hooking somewhere in wp_insert_post(). The more complex, … Read more

Listing Parent, Child and GrandChild Categories and then the PostTitles on Page Template !

This would be the way I’d do it. Add the following to your functions.php; class Walker_Category_Posts extends Walker_Category { function start_el( &$output, $category, $depth, $args ) { parent::start_el( $output, $category, $depth, $args ); if ( $category->parent ) return $output; if ( $posts = get_posts( ‘posts_per_page=-1&no_found_rows=1&update_term_cache=0&cat=” . $category->term_id ) ) { $output .= “<ul>’; foreach ( … Read more

Allow contributors to add categories, but not delete

Since the category widget on the post page only lets you create categories and not delete them, you could just hide access to the main category editor page for this user type, and allow them to still create categories within the post editor. You could do this with CSS or javascript, something like $(‘ul.wp-submenu a[href=”https://wordpress.stackexchange.com/questions/14060/edit-tags.php?taxonomy=category”]’).hide(); … Read more

Creating archive pages for children categories

Create 2 pages category-news.php & category-video.php & put this code in them. Then customize the markup for both as you like <?php $children = get_categories(‘child_of’=>get_query_var(‘cat’)); $cat = array(get_query_var(‘cat’)); foreach($children as $child) $cat[] = $child->term_id; $catPosts = new WP_Query( array( ‘category__in’ => $cat, ‘posts_per_page’ => 5, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’ ) ); while ($catPosts->have_posts()) … Read more