cialis online pharmacy generic xenical cheap cialis online cialis generic viagra online in canada buy cheap levitra online cialis without a perscription order viagra uk no prescription flagyl cheap generic levitra buying viagra in the uk cheap viagra approved cialis deltasone online buy viagra online without prescription non prescription cialis buy orlistat uk buy cialis in india prednisone 60 mg female viagra online buy viagra without prescription celebrex prescriptions buy cialis canada best prices viagra alternative to prednisone cheapest generic levitra levitra 5mg cheap viagra cialis on line buy xenical without prescription online accutane canadian health care prednisone no prescreption viagra online generic female viagra europe buy cialis low price cheap india viagra

How To Display Your Tags In A Dropdown List Menu In WordPress

What’s great about a dropdown list interface is that it saves your site some real estate. It frees up some space on the layout for you to put in other contents and features.

WordPress’ default category widget is displayed as such but unfortunately the same cannot be said about the tags list. Good thing there’s a hack that allows your tags to be displayed in the same manner as well. Hafiz Rahman of WPLover shows us how in today’s featured WordPress tutorial. All you have to do is apply the same wp_dropdown_categories() function that WordPress use to display your category.

Simply paste the code below onto where you’d like to have the dropdown menu displayed. Hafiz notes that you can use and provide your own taxonomy by modifying the code in line 6, which contains the parameter taxonomy=post_tag.

<li id="categories">
 <h2><?php _e('Posts by Tags'); ?></h2>
 <form action="<?php bloginfo('url'); ?>/" method="get">
$select = wp_dropdown_categories('taxonomy=post_tag&show_option_none=Select tag&show_count=1&orderby=name&echo=0');
$select = preg_replace("#<select([^>]*)>#", "<select$1 onchange='return this.form.submit()'>", $select);
echo $select;
 <noscript><div><input type="submit" value="View" /></div></noscript>

Related Posts

Themeum’s Flat Theme Multipurpose WordPress Theme

Weblizar Premium Responsive Theme

Automattic Buys WooCommerce Plugin for WordPress

Localbiz Business Theme for WordPress