Support » Plugin: Media Category Library » Search form in a widget?

Viewing 2 replies - 1 through 2 (of 2 total)
  • try adding this to the sidebar.php but did not work:

    <form id="mediacat-library-search-form" action="<?php echo get_site_url(); ?>/<?php if ( get_option( 'permalink_structure' ) ): ?><?php echo $this->settings_data['rewrite_url']; ?><?php else: ?>?mediacat_library=1<?php endif; ?>" method="post">
    	                    <div>
    				<select name="media-categories[]" id="media-categories[]">
                                    <option value="<?php echo $slug; ?>">-- <?php _e( 'All', self::nspace ); ?> --</option>
    <?php foreach ( $this->get_media_categories() as $slug => $name ): ?>
                                    <option value="<?php echo $slug; ?>"<?php if ( $slug == $_REQUEST['cat'] ): ?> selected<?php endif; ?>><?php echo $name; ?></option>
    <?php endforeach; ?>
                            	</select>
    
                            <input type="hidden" name="mediacat_library_submit" value="1">
    	                	<input type="submit" value="<?php _e( 'Search', self::nspace ); ?>">
                            </div>
    
    	        </form>
    			<?php// if ( $_REQUEST['keyword'] || $_REQUEST['media-categories'] ) $this->mediacat_library( true ); ?>

    ?

    🙁

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Search form in a widget?’ is closed to new replies.