<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.1-alpha-2539" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
		>
	<channel>
		<title>WordPress.com Forums &#187; Tag: menu widget - Recent Posts</title>
		<link>http://en.forums.wordpress.com/tags/menu-widget</link>
		<description>WordPress.com Forums &#187; Tag: menu widget - Recent Posts</description>
		<language>en</language>
		<pubDate>Sun, 26 May 2013 09:36:32 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.1-alpha-2539</generator>
				<atom:link href="http://en.forums.wordpress.com/rss/tags/menu-widget" rel="self" type="application/rss+xml" />

		<item>
			<title>evilkisses on "Change widget to dropdown?"</title>
			<link>http://en.forums.wordpress.com/topic/change-widget-to-dropdown#post-1161817</link>
			<pubDate>Sun, 24 Feb 2013 17:01:41 +0000</pubDate>
			<dc:creator>evilkisses</dc:creator>
			<guid isPermaLink="false">1161817@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>Hi Guys,</p>
<p>I bought a review theme and there`s a review categories widget for the sidebar, it works well but I have a list of over 350 review categories and when in the sidebar takes lots of space on the frontpage.</p>
<p>I was wondering, hoping that someone here could look at the code and show how it can be changed as a dropdown menu for the sidebar.</p>
<p>The review sidebar widget code is below:</p>
<p>&#60;?php</p>
<p>add_action("widgets_init", "proreview_review_cat_init");<br />
function proreview_review_cat_init()<br />
{<br />
  register_widget( 'proreview_review_cat_Widget' );</p>
<p>}/*<br />
function example_load_widgets() {<br />
	register_widget( 'Example_Widget' );<br />
}<br />
*/</p>
<p>class proreview_review_cat_Widget extends WP_Widget {</p>
<p>	function proreview_review_cat_Widget() {<br />
		/* Widget settings. */<br />
		$widget_ops = array( 'classname' =&#62; 'review_cat', 'description' =&#62; __('Displays review categories in sidebar', 'review_cat') );</p>
<p>		/* Widget control settings. */<br />
		$control_ops = array( 'width' =&#62; 200, 'height' =&#62; 350, 'id_base' =&#62; 'review_cat-widget' );</p>
<p>		/* Create the widget. */<br />
		$this-&#62;WP_Widget( 'review_cat-widget', __('ProReview : Review Categories', 'review_cat'), $widget_ops, $control_ops );<br />
	}</p>
<p>function widget( $args, $instance ) {<br />
		extract( $args );</p>
<p>		/* Our variables from the widget settings. */<br />
		$title = apply_filters('widget_title', $instance['title'] );<br />
		$widget_content= $instance['add_text'];<br />
		if( $show_on_home == "yes" ) if( !is_home() &#38;&#38; !is_front_page() ) return;<br />
		if( $border_flag == "yes" )<br />
			echo str_replace("widget_area_side", "widget_area_side no-border ", $before_widget );<br />
		else<br />
			echo $before_widget;<br />
?&#62;<br />
&#60;div class="review_cat"&#62;<br />
&#60;?php<br />
		if ( $title )<br />
			echo $before_title . $title . $after_title;<br />
		proreview_review_cat($widget_content);</p>
<p>		echo $after_widget;		?&#62;		&#60;/div&#62;		&#60;?php<br />
	}</p>
<p>	function update( $new_instance, $old_instance ) {<br />
		$instance = $old_instance;</p>
<p>		$instance['title'] = strip_tags( $new_instance['title'] );</p>
<p>		$instance['add_text'] = $new_instance['add_text'];<br />
		return $instance;<br />
	}</p>
<p>	/**<br />
	 * Displays the widget settings controls on the widget panel.<br />
	 * Make use of the get_field_id() and get_field_name() function<br />
	 * when creating your form elements. This handles the confusing stuff.<br />
	 */<br />
	function form( $instance ) {</p>
<p>		/* Set up some default widget settings. */<br />
		$defaults = array( 'title' =&#62; __('Review Categories', 's_add'),'det' =&#62; 'Some information s_add our website' );<br />
		$instance = wp_parse_args( (array) $instance, $defaults ); ?&#62;</p>
<p>		&#60;!-- Widget Title: Text Input --&#62;<br />
		&#60;p&#62;<br />
			&#60;label for="&#60;?php echo $this-&#62;get_field_id( 'title' ); ?&#62;"&#62;&#60;?php _e('Title:', 'hybrid'); ?&#62;&#60;/label&#62;<br />
			&#60;input id="&#60;?php echo $this-&#62;get_field_id( 'title' ); ?&#62;" name="&#60;?php echo $this-&#62;get_field_name( 'title' ); ?&#62;" value="&#60;?php echo $instance['title']; ?&#62;" style="width:100%;" /&#62;<br />
		&#60;/p&#62;</p>
<p>	&#60;?php<br />
	}<br />
}<br />
function proreview_review_cat( $add_text ){<br />
?&#62;
<ul>	&#60;?php 	$of_terms_obj = get_terms('review-cats'); 	foreach ($of_terms_obj as $of_term) {		?&#62;
<li><a>"&#62;&#60;?php echo $of_term-&#62;name; ?&#62;</a></li>
		&#60;?php		//$of_terms[$of_term-&#62;term_taxonomy_id] = $of_term-&#62;name; 	} ?&#62;<br />
&#60;?php } } ?&#62;</ul>
]]></description>
					</item>
		<item>
			<title>thesacredpath on "Menu Hierarchy incorrect"</title>
			<link>http://en.forums.wordpress.com/topic/menu-hierarchy-incorrect#post-567153</link>
			<pubDate>Wed, 02 Mar 2011 09:30:01 +0000</pubDate>
			<dc:creator>thesacredpath</dc:creator>
			<guid isPermaLink="false">567153@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>If you do not want the top navigation to show, create a new custom menu, save it and leave it blank with no pages or anything. Then go to the "theme locations" module at top left and from the "primary location pulldown select the blank menu.
</p>
]]></description>
					</item>
		<item>
			<title>thesacredpath on "Menu Hierarchy incorrect"</title>
			<link>http://en.forums.wordpress.com/topic/menu-hierarchy-incorrect#post-567150</link>
			<pubDate>Wed, 02 Mar 2011 09:28:23 +0000</pubDate>
			<dc:creator>thesacredpath</dc:creator>
			<guid isPermaLink="false">567150@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>To have sub menu items, you have to "indent" them slightly to the right in the custom menu as explained in the custom menu support document. The menu widget does not have dropdowns. It will show the sub's slightly indented below the top level menu item.</p>
<p><a href="http://en.support.wordpress.com/menus/#changing-the-order-of-menu-items-and-creating-sub-menus" rel="nofollow">http://en.support.wordpress.com/menus/#changing-the-order-of-menu-items-and-creating-sub-menus</a></p>
<p><a href="http://en.support.wordpress.com/widgets/custom-menu-widget/" rel="nofollow">http://en.support.wordpress.com/widgets/custom-menu-widget/</a>
</p>
]]></description>
					</item>
		<item>
			<title>edm4atx on "Menu Hierarchy incorrect"</title>
			<link>http://en.forums.wordpress.com/topic/menu-hierarchy-incorrect#post-567127</link>
			<pubDate>Wed, 02 Mar 2011 08:19:29 +0000</pubDate>
			<dc:creator>edm4atx</dc:creator>
			<guid isPermaLink="false">567127@http://en.forums.wordpress.com/</guid>
			<description><![CDATA[<p>Added the menu widget and created  7 menu tabs. I am having 2 issues.</p>
<p>1.) When the blog is viewed, only 2 menu names I have created show (About and Home). There is a 3rd I didn't create which is Blog, but that's okay. The other menu names that show are pages I have created.</p>
<p>2.) The pages I created that are showing are the 3 I wanted to put in hierarchy order like this:<br />
       I know the DJ<br />
              Local DJs<br />
                     (multiple) Individual DJ names</p>
<p>All were created as pages. I added the pages to the menu name I wanted, then moved them accordingly for the hierarchy I wanted and saved. When I view the page, there is no dropdown under the I know the DJ you should be able to toggle on, all pages are listed in the main menu at the top of the page.
</p>
]]></description>
					</item>

	</channel>
</rss>
