list taxonomy based on taxonomy

If you are trying to print children of a category, this should be sufficient: <?php wp_list_categories(‘orderby=id&show_count=1&use_desc_for_title=0&child_of=”.$term_id); ?> Details here: http://codex.wordpress.org/Template_Tags/wp_list_categories

List posts that are in the same category as the current post title

First you need to fetch the current category, then grab posts. So, try <ul> <?php global $post; $category = get_the_category($post->ID); $args = array( ‘numberposts’ => -1, ‘offset’=> 1, ‘category’ => $category ); $myposts = get_posts( $args ); foreach( $myposts as $post ) : setup_postdata($post); ?> <li><a href=”https://wordpress.stackexchange.com/questions/56247/<?php the_permalink(); ?>”><?php the_title(); ?></a></li> <?php endforeach; ?> </ul>

Way to show content of a post, but if exceeds character limit revert to excerpt?

replace the_content(); with echo wpse_limit_content(); function wpse_limit_content() { $content = $post->post_content; $MAX_LENGTH = 100; if ( strlen( $content ) <= $MAX_LENGTH ) return apply_filters(‘the_content’, $content ); $s2 = substr( $content, 0, $MAX_LENGTH ); $s3 = preg_split( “/\s+(?=\S*+$)/”, $s2 ); $s4 = $s3[0]; return apply_filters( ‘the_excerpt’, $s4 ); } If the string is to long it … Read more

How to add a box for list items?

If you want to create an option page with image upload/select fields you can use the Option Framework plugin. It is straighforward and easy to use for anyone. If you want to add upload/select fields to a wordpress page or post use Custom Fields Creator or the more powerful plugin: Advanced Custom Fields. NB you … Read more

List products from current category

Your best bet to do this would be to add a filter/hook on the specific tag. See this snippet at the WooCommerce API docs site on excluding a category for the proper format and to get going in the right direction. http://wcdocs.woothemes.com/snippets/exclude-a-category-from-the-shop-page/ But if you want a down and dirty way to filter for a … Read more

Add thumbnails in ‘li’ list

If this is a post loop can’t you just put your images in li’s within the editor. Just select them and put them into a bulleted list.