I am trying to list child pages of a cetain page. The ‘child=’ parameter works well, but other functions, such as ‘selected=’, do not work, and especially styling this function is a sheer nightmare.
<div id="pages"> <h3><?php _e('Search'); ?></h3> <form action="<?php bloginfo('url'); ?>" method="get"> <?php wp_dropdown_pages('child_of=199'); ?> <input type="submit" name="submit" id="submit" value="VIEW" /> </form> </div>
One can set the width of the <div id=pages>, but the form itaself will overflow the div width. One can reduce the width of the <option> but the dropdown window will remain at set width which remains outside the boundaries of the <div> surrounding it.
There is no styling options or parameters on the wp_dropdown_pages Functions Refence page : Function Reference/wp dropdown pages
Is there a set pixel width in the WP source code for the wp_dropdown_pages function?
Does anyone else have problems with this function?
- The topic ‘wp_dropdown_pages cannot be styled and some parameters do not work’ is closed to new replies.