Convert UL to dropdown list not working

@CharlieJustUs when you use Fiddle is automatically sets the $ variable for you. When your script tries to run on your site, that variable is not set, and it fails. Try this please. jQuery(document).ready(function($) { $(function() { $(‘ul.clearfix’).each(function() { var $select = $(‘<select class=”dropdown-toggle” />’); $(this).find(‘a’).each(function() { var $option = $(‘<option />’); $option.attr(‘value’, $(this).attr(‘href’)).html($(this).html()); $select.append($option); … Read more

View the complete list of a taxonomy in the navigation menu

You can achieve the result using following code: $terms = get_terms( array( ‘taxonomy’ => ‘country’, ‘hide_empty’ => false, ‘orderby’ => ‘name’, ‘order’ => ‘ASC’, ) ); if ( !empty($terms) ) : $output=”<ul>”; foreach( $terms as $country ) { $output.= ‘<li><a href=”‘.get_term_link( $country->term_id ).'”>’. esc_attr( $country->name ) .'</a></li>’; } $output.='</ul>’; echo $output; endif; Here I’m using … Read more

Hide specific category from wp_list_categories

You can use the exclude parameter: ‘exclude’ (array|string) Array or comma/space-separated string of term IDs to exclude. If $hierarchical is true, descendants of $exclude terms will also be excluded; see $exclude_tree. See get_terms(). So with your $args: $args = array( ‘hide_empty’ => true, ‘title_li’ => ”, ‘show_count’ => 0, ‘echo’ => 0, // Excludes specific … Read more

List Child Categorie and hide the parent

You need to add &title_li= to your code like so to remove the word “Categories”: <?php wp_list_categories(‘orderby=id&show_count=0&use_desc_for_title=0&child_of=5&title_li=’); ?> More information on categories can be found in the codex here: http://codex.wordpress.org/Template_Tags/wp_list_categories

confused about wp_list_pages() function – how to display selected top pages with all their subpages

When you use include parameter of wp_list_pages you are basically telling it to only include these certain Pages in the list. you should use exclude_tree instead, when using this parameter it will exclude a parent and all of that parent’s child Pages. so something like: $top_pages_to_exclude=”1″; // the top page to be excluded ID, you … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)