wp_dropdown_cats [ WordPress Function ]
wp_dropdown_cats ( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 )
| Parameters: |
|
| See: | |
| Returns: |
|
| Defined at: |
|
Soorgelijke functies: dropdown_cats, wp_dropdown_pages, wp_dropdown_categories, wp_dropdown_users, wp_dropdown_roles
{@internal Missing Short Description}}
Source
<?php
function wp_dropdown_cats( $currentcat = 0, $currentparent = 0, $parent = 0, $level = 0, $categories = 0 ) {
_deprecated_function( __FUNCTION__, '3.0', 'wp_dropdown_categories()' );
if (!$categories )
$categories = get_categories( array('hide_empty' => 0) );
if ( $categories ) {
foreach ( $categories as $category ) {
if ( $currentcat != $category->term_id && $parent == $category->parent) {
$pad = str_repeat( '– ', $level );
$category->name = esc_html( $category->name );
echo "\n\t<option value='$category->term_id'";
if ( $currentparent == $category->term_id )
echo " selected='selected'";
echo ">$pad$category->name</option>";
wp_dropdown_cats( $currentcat, $currentparent, $category->term_id, $level +1, $categories );
}
}
} else {
return false;
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- wp_dropdown_cats Wordpress hook details -- Adam Brown, BYU ...
WordPress hook directory wp_dropdown_cats. Description. Applied to the drop- down category list (a text string containing HTML option elements) generated by ...
adambrown.info - WordPress › Support » add post count to wp_dropdown_cats?
add post count to wp_dropdown_cats? (8 posts). jhorner. Member Posted 7 years ago #. Anyone know how I can add a count of posts in each of the categories ...
wordpress.org - WordPress › Support » Error Fix: wp-admin/categories.php
The function wp_dropdown_cats requires at least one argument. In wp-admin/ categories.php on line 186 is a call to wp_dropdown_cats with no arguments, this ...
wordpress.org - wp_dropdown_cats (WordPress Filter Hook) - WPSeek.com
WordPress lookup for wp_dropdown_cats, a WordPress Filter Hook. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com