To remove grand-children:
<?php $args = array(
'show_option_none' => 'Make',
child_of => 5,
hide_empty => '0',
exclude => '0',
hierarchical => 1,
depth => 1
); ?>
<b>Make </b><?php wp_dropdown_categories($args); ?>
You need to add the hierarchical and depth parameters.
Related Posts:
- How to show only the last two categories in a menu?
- add_action hook for completely new post?
- How can i list current author’s categories?
- How to Make a Category Always Selected?
- anything like add_meta_box for categories?
- Calling clean_term_cache() fails when called in the same plugin that creates terms, succeeds when called separately?
- Missing “category_children” option when dynamically creating categories via a plugin
- Can we create a category list page in WordPress?
- Dropdown list of pages to get page id to store in plugin options
- prevent post to have multiple categories in my plugin
- get_pages Drop down list for selection of a page
- Show add_meta_box by selecting a specific category
- Which are the hooks run before/after when a category’s deletion?
- how do you prevent showing a particular category on the admin dashboard for specific user roles?
- Is it possible to change a term slug before being saved to the database?
- wp_insert_category() setting the ‘cat_ID’ gives not array error
- Send push when new post is published in a certain category
- How do I get the sub categories of the parent when in a sub category?
- Filter Categories widget to allow custom sorting?
- Function/Class to list categories with checkboxes
- How can I show posts for a single category?
- Check if post belongs to any category
- How to display the categories on page using shortcode?
- How to display the category id along with category name on categories list?
- add_action pre_term_description vs. pre_category_description
- How to show parents of current page category, excluding the category?
- Load stylesheet in edit category page?
- How to relate the Category to user?
- How to exclude categories from get_categories() select list inside a widget admin panel
- How to Show Category List With Corresponding Links?
- Exclude Woocommerce Product Category From Sitemap
- Determine if term is Category or Tag
- How to check category name available or not
- Save meta box data from selected dropdown list in bbpress reply form
- delete category on plugin deactivation wordpress
- Post is uncatagorized in publish_post action
- Hide post by ‘post_category’
- Woocommerce product not appearing in category list page when created programatically [closed]
- Yoast and another plugin
- Making Woocommerce optimized for more than 500k products
- Add a new tag based on the category name in the publish event
- Creating an archive page listing external data
- How can i call from custom fields to the category editor?
- What method would I use to show an image in between X amount of posts on category archive? [duplicate]
- filter on get_posts efficiently
- How to get recent one post from each category on home page?
- Serialized Data
- What does $_REQUEST[‘redirect_to’] do?
- Conditional query tags do not work before the query is run. Before then, they always return false
- I want to encrypt my WordPress plugin
- How can I make my website with wordpress having on-spot editing feature as compared to concrete5 CMS?
- Method to retrieve category names and IDs only as an array?
- How to Pass ID through Short Code
- isset($_POST[‘submit’]) ignored on comment submission
- How to Prove Ownership of plugin [closed]
- How To Remove The Filter That Adds JetPack Related Content To Dom [closed]
- Fixing plugin for wpdb::prepare
- Need edit profile link in the menu for logged in users
- Developing Themes on WordPress, Looking for Excellent Tutorials [closed]
- Remove text from confirmation message
- How to synchronize an e-commerce site and a pharmacy management software?
- Create a Custom Login System in WordPress [closed]
- Problem with Poedit [closed]
- Which subset of html does WordPress support?
- Best Way to Inventory the Media Library of a 200+ Multisite Installation?
- Method not receiving attributes from shortcode call, general OOP problems
- Loading jQuery library from WordPress admin
- how can I insert a link on login page
- How to remove a class [closed]
- Facebook share button help
- Shortcode attribute “title” doesn’t appear in $atts array
- how to search through plugin in wordpress cimy-user-extra-fields?
- How do i code exit popup plugin?
- How to Implement SAM Broadcaster with WordPress? [closed]
- How to delete all the options in an option group
- wp_delete_post returning WordPress database error unknown column 0
- Plugin – Proper way to handle 404 pages?
- How to only Load scripts on variable products page
- How to design WooCommerce-like admin tabs for plugin settings page?
- Woocommerce: block user removing cart item
- Using tag or inline style attribute?
- How to view the code for a certain page?
- How do I use (or mimic) document.getElementById() on a page loaded from WordPress database?
- Can’t add images in wordpress to my page – button isn’t clickable
- WordPress Plugin default option
- Custom Pin it button is not showing over the image instead it shows as block top_left
- Creating MP3 playlist
- check wp_login into a plugin
- How to show data on a table
- echo statement repeats
- The plugin generated 3265 characters of unexpected output
- how to insert content into wp_head after loop_end
- Can I use an array to create multiple tables?
- woocommerce features to add product along with link
- Developing a wordpress.com shortcode [closed]
- Modify a Themes Appearance >> Header admin screen from a plugin
- upload script in plugin development [duplicate]
- plugin backend help
- How to set init for maximum script execution, memory limit and max files upload in wordpress
- How to translate WP plugin name?