Freed from comment; the asker really did not want to write an answer. :/
function convert_root_cats_to_radio()
{
global $post_type;
?>
<script type="text/javascript">
jQuery("#activitycategorychecklist>li>label input").each(function(){
this.disabled = "disabled";
});
jQuery("#activitycategorychecklist>li>ul>li>label input").each(function(){
this.type="radio";
});
jQuery("#activitycategory-tabs li:odd").hide();
</script> <?php
}
add_action( 'admin_footer-post.php', 'convert_root_cats_to_radio' );
add_action( 'admin_footer-post-new.php', 'convert_root_cats_to_radio' );
Related Posts:
- get_terms won’t display product_cat or any other custom taxonomies when specified
- Can I restrict category availability?
- create a “add icon” field in taxonomies page
- Get meta values from parent post and save in child post
- Displaying wp post categories into my custom metabox
- Need to build custom metabox select prev posts by category
- Get category id from post id of a custom post type
- Why won’t my metabox data save?
- WP_List_Table Inside Metabox Not Working on Submit
- Add metabox with media uploader in a custom post type [duplicate]
- wp_generate_attachment_metadata gives me an empty array
- Custom-Taxonomy as categories: Remove “most-used” tab?
- Removing Edit Permalink/View “Custom Post Type” areas
- Unable to save custom taxonomy terms in a custom-built metabox
- How to sort CPT by custom meta value (date), and return posts month by month
- Add filter to wp_list_categories and query what type of taxonomy-terms it use?
- How can I include meta box content when searching?
- List all custom post type posts from a given category?
- Restrict categories to a custom post type
- Getting all custom posts with a certain category
- Displaying custom posts only if custom meta box’s date is not expired
- How to get category image custom post type taxonomy in wordpress?
- Displaying Metabox value (custom post type taxonomy)
- Hide Meta Boxes for Non-Admins
- Query Custom Post Types & category_name?
- How do I get the child category posts from a custom post type?
- Add TinyMCE to CPT metaboxes in 3.1?
- advanced search forms with 3 input text and that the main problem 3 input text
- Keep display metadata value on backend – Custom Metabox
- Populate dropdown from one custom post type inside another custom post type
- Why is my select meta data not saving?
- wp_list_categories() – current-cat class also inside posts?
- Limit amount of posts made within a custom taxonomy
- Grouping metadatas into one
- Anon function and add_meta_box
- Post injections into Site Origins Page builder [closed]
- WordPress posts page for customer filtering and sorting along with category filter
- Why is my category template ignoring post type?
- Not sure if I should create multiple custom post type [closed]
- Custom post types and category archive
- Can custom fields be added without a meta box?
- Meta Box on Custom Post Type not saving
- Categorise Custom Post Types
- Tag page only display 10 posts
- WP_Query Custom Post Type if Category ID Equals
- Custom post types and ‘new WP_Query’
- Saving Meta Data within Custom Post Type
- Creating Sections for Post Types
- Listing all slugs?
- Values from meta-box not on $_POST
- Get id from metabox dropdown
- Custom posttype content metabox
- How can I output WPAlchemy repeating fields meta values in my page template?
- Categories won’t appear on custom post type
- How can I modify a custom post type and custom page template for a child theme if all content seams to be handled by theme’s ‘native’ plugin?
- Meta box data not saving
- Displaying One Custom Post Type’s Content On Single Post of Another Custom Post Type
- Custom post types category
- Questions regarding add_meta_box()
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Advanced archive url structure (category, tag and date)
- Displaying taxonomies as category links within sidebar and creating pages for these
- Metaboxes inside Tab
- Custom post category name showing empty
- Custom Post Type meta data getting deleted on bulk editing taxonomies
- What is the best way to set the post category (Custom Post Type) automatically based on the one of the tags assigned to the post?
- How to show related posts of category on post within custom posttype
- Show a custom post title in another custom post type in Meta box
- Sudden 404 pages on product category archives
- Custom Post Types – trying to make “title” display
- Modify Publish Metabox location on CPT
- Convert category to custom post type
- How can I display a specific category on Front-Page
- PHP Warning with Custom Fields
- Custom taxonomy with custom post type archive page
- How to seperate posts by categories?
- WooCommerce change
- Adding categories to custom post type in permalink
- I can not call the categories of custom post type
- Custom Post Type is not respecting assigned categories
- Help with Travel Guide Setup
- How to shows CPT which has specific meta key?
- Project Category Heading
- Getting Custom post category from Form
- wp_dropdown_pages doesn’t allow me to select more than one custom post type
- Delete custom post type metadata without deleting the post in admin area
- Metabox is not saving
- Front end page submission form does not attach custom post type
- Not Able to Display Metabox Saved Checkbox and Selected option After Save/ Update
- Best way to structure article and issue relationship for CPT
- Custom Post Type used for FAQs Accordion
- Category slug not showing for Custom Post Type
- category page template for custom post type
- Select custom post by meta value
- Custom Post Type Permalinks with %category%
- Custom post type – permalink
- Return Custom Post Type Categories
- Using tax_query to get single post per category
- Display div based on Group metabox selection [closed]
- Is it possible to make is_category() recursive?