To add the data-select to the select tag use
<?php
$select = wp_dropdown_categories($dropdown_args);
$select = preg_replace("#<select([^>]*)>#", "<select$1 data-select="select1">", $select);
echo $select;
?>
then change the echo in $dropdown_args to 0.
I will take the jquery part of the question to the right platform
Related Posts:
- restrict_manage_posts not working in 3.3.1
- Dropdown: Display terms from B only if has relationship with a term A selected
- How can I display parent and child taxonomies in separate drop downs?
- Display a custom taxonomy as a dropdown on the edit posts page
- How to create drop down for child categories of current taxonomy being viewed?
- How to get a list of taxonomy terms which are being used only within certain post types?
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- How to determine the depth of a term in a custom taxonomy?
- How to adjust code to refresh a dropdown box with tags that are active on filtered category listing
- Autogenerate Front End Form Field With jQuery
- Controlling Taxonomy Category listings to hide and unhide specifics
- Get parent and children taxonomy in different dropbox
- How to create a dependent drop-down and options in dropdown must be manageable from admin panel
- Filter custom taxonomy archive posts by 2nd custom taxonomy using select dropdown
- Display parent and child taxonomies in separate drop down select fields
- Query posts from a child taxonomy term id
- Prevent users from adding taxonomy terms
- Create custom taxonomy and Display in metabox dropdown
- Using wp_dropdown_categories in widget options
- Multiple Custom Taxonomy Dropdowns Lists
- Why isn’t the ‘no results’ being shown when a query returns no results?
- wp_dropdown_categories – how to save in widget?
- wordpress mysql / wpdb ajax load more for terms help
- How to add a dynamic dropdown derived from custom taxonomy
- Custom field with terms from another taxonomy programmatically
- Dropdown (with onChange) with custom taxonomies
- Unregistered taxonomy apears still as emtpy filter list
- Searching JQuery arrays of taxonomy terms for word matches in frontend images upload
- ajax drop down change second drop down data
- How to show/hide a meta box using categories, with a different post type
- Calling Custom Taxonomy Dropdown in Form
- Unable to display the post titles in a drop down
- Nested Accordions For Taxonomies [closed]
- Taxonomy to display form after creation
- Using wp_query is it possible to orderby taxonomy?
- “tax_query” parameter not working with WP_Query
- How do I exclude a custom taxonomy from the post loop
- get_posts assigned to a specific custom taxonomy term, and not the term’s children
- How can I get only parent terms?
- How to modify a taxonomy that’s already registered
- Retrieve posts by term id custom query
- Change order of Custom Taxonomy List
- Get the the top-level parent of a custom taxonomy term
- get_the_term_list without links in 3.1
- Inserting terms in an Hierarchical Taxonomy
- get_terms – only top level
- Custom taxonomy terms not showing as list Gutenberg Editor
- Altering the appearance of custom taxonomy inputs
- How to only list the child terms of a taxonomy and not their parents?
- Get term SLUG by term ID
- Is ACF being a honey trap? [closed]
- Get term name from term ID?
- Check if Current Category has Children
- How to use taxonomies on attachments with the new Media Library?
- Hierarchical taxonomy UI
- WordPress taxonomy radio buttons
- How to prevent new terms being added to a custom taxonomy?
- Custom taxonomy, get_the_terms, listing in order of parent > child
- How to remove the tag cloud from custom taxonomy admin page?
- custom taxonomy and pages rewrite slug conflict gives 404
- Inserting a term into a custom taxonomy
- Count posts in custom taxonomy
- How to add images to taxonomies?
- Read-only taxonomy (user can assign term but can’t create or edit existing terms)
- Remove taxonomy base or term from url
- Can you add the visual editor to the description field for custom taxonomies?
- Adding Category/Tag/Taxonomy Support to Images/Media
- Add default WordPress tag meta box to User Profile
- Custom Taxonomy Endpoint Pagination using paginate_links()
- How do I get the top-level terms in a custom taxonomy?
- Check if a post has any term in this custom taxonomy?
- limit selection of custom taxonomies to one?
- Query Custom Post by Taxonomy Category
- Custom columns on edit-tags.php main page
- Loop through custom taxonomies and display posts
- How do I add a custom taxonomy as an option for menus under “Appearance” > “Menus”
- custom post type taxonomy “tag” archive : no post found
- How to get WooCommerce Product Category Link by ID?
- Order get_terms using a Custom Field
- Add custom taxonomy fields when creating a new taxonomy
- get_term_children for immediate children only (not grandchildren)
- Using pre_get_posts to rewrite search query to display posts from multiple taxonomies
- Custom taxonomies capabilities
- Contact Form 7 – Populate Select List With Taxonomy [closed]
- Can’t get a custom template taxonomy page to display
- Query users by custom taxonomy and user role
- Display category posts grouped by taxonomy
- WP REST API no longer supports filter param, so how do I get posts in a custom taxonomy?
- Custom Taxonomy and Tax_Query
- Custom Taxonomy Archive Page
- How to display custom taxonomies in posts?
- Get taxonomy names by post id
- Include and Exclude Taxonomies From Archives & Feeds Using ‘pre_get_posts’
- How to assign multiple roles for capabilities array withini register_taxonomy function?
- Filtering custom taxonomies
- Custom Taxonomy as Dropdown in admin
- Can custom taxonomies be displayed inside of a custom meta box?
- Determine Term depth
- Exclude Specific Term from Search
- How to get current term in my custom taxonomy in WordPress?