Error trying import one category on page

As per the codex query_posts Note: This function isn’t meant to be used by plugins or themes. As explained later, there are better, more performant options to alter the main query. Double Note: query_posts() is overly simplistic and problematic way to modify main query of a page by replacing it with new instance of the … Read more

Widget header unique classes

please study the RELATED links here in the right sidebar. http://codex.wordpress.org/Function_Reference/register_sidebar refer to this line: ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’, %1$s outputs an id specific to the widget type; %2$s outputs a widget specific class including an unique number.

Showing Subcategory’s Name and Link Instead of Parent Category’s

Little change: <?php $category_separator = “”; foreach((get_the_category()) as $childcat) { $parentcat = $childcat->term_id; if( $parentcat != 0 ) echo ‘<span class=”‘ . get_cat_name($parentcat) .'”><a href=”‘ . get_category_link($parentcat) . ‘”>’ .get_cat_name($parentcat) .'</a></span>’; else echo ” . $category_separator . ‘<span class=”‘. $childcat->cat_name .'”><a href=”‘ . get_category_link($childcat) .'”>’ . $childcat->cat_name . ‘</a></span>’; $category_separator = “https://wordpress.stackexchange.com/”; } ?> Actually … Read more