Ok… as thing go when your trying to solve somethimg you have no peace until its fixed so.. i went ahead and did some clear mind thinking (after a night sleep) and got that i can check the HTML for the values returen.
Just wanted to share incase anyone stumbles with the need for this info
This:<?php wp_dropdown_categories('show_option_none=---------------->&taxonomy=category&hide_empty=0&name=cats[]&orderby=name&hierarchical=1'); ?>
Returns a value of the category number for each select item which is easy to check.
Also.. about the translation part
this is the right way to do that..
<?php
$choosecatmsg = __('Choose A Category', 'blue_article_demon');
wp_dropdown_categories('show_option_none=".$choosecatmsg."&taxonomy=category&hide_empty=0&name=cats[]&orderby=name&hierarchical=1');
?>
Thanks for anyone who took a look
while i was stuck 🙂
Related Posts:
- Dropdown with category selection
- Saving two categories from two dropdowns in front end posting form
- Get id of category from drop down menu
- How to add HTML5 ‘required’ attribute to wp_dropdown_categories() without JavaScripts?
- Custom widget using get_categories select menu dropdown
- How to retain the values from dropdown category lists after wrong form submission?
- Help with multiple dropdown tags search
- How to use wp_category_checklist()?
- wp_dropdown_categories and custom taxonomy + custom post type
- How to provide value for ‘selected’ on wp_dropdown_categories() for ‘multiple’ options
- Display tags from specific category in select fields
- Filter Select results based on selection
- Additional form options based on category selected not working
- wp_dropdown_categories() scripts working erratically on sidebar
- How to use an array of categories as a dropdown?
- How do I display only two categories Instead of displaying all categories
- Dropdown Categories used in form shows no results when all is selected
- Trying to get variables in hacked category dropdown
- wp_list_categories walker without links on categories that have subcategories (to make a nested dropdown menu)
- Multiple selection for wordpress widget
- Filter posts by categories ajax is showing nothing
- WordPress Customizer: Dropdown with Category output
- Filter By Category Dropdown List With Custom Taxonomies
- A dropdown with checklist
- Wp Dropdown Category Not Show Current As Title
- wp_dropdown_categories initial value
- Help with a get_categories () drop down menu – I want it to show in heirachial form
- Exclude category from drop down list form
- Trying to get categories and sub-category listing
- Get_term_meta() always returns false
- Woocommerce Category Sort Dropdown
- How to add custom option to wp_dropdown_categories?
- Default URL for category dropdown select option
- custom browse by
- Get category fixed in dropdown browse categories
- Categories dropdown with all values selected using wp_dropdown_categories
- add custom option to get_categories dropdown
- Taxonomy for custom post type not found
- Get category ID from category slug (not working)
- How do I remove “Uncategorized” from posts with more than 1 category?
- Control term order on a per-post basis
- Changing Top Level Items into Radio Buttons in the Categories Meta Box?
- Custom post types with their own permalink structure
- How to create a widgetized sidebar for every category dynamically?
- Display the deepest child category from Category X (in loop)
- When using get_categories or similar, is it possible to filter results that contain certain Tags as well?
- Exclude subcategories from the url
- Select category in custom query
- Removed slug from CPT, now How/where do I hook the filter to the taxonomy term archive pages link?
- Search by word, category, tag, author
- How to hide certain categories in wordpress dashboard?
- How to filter archives both by category and tag?
- Resolved – category-slug.php not working after wordpress migration
- How i can let users add notes to my posts
- Single_cat_title() print the title before text
- Sort posts by post_type in category.php template
- Add Post Screen Keep Category structure
- getting content from main domain to sub-domain using category and WP_Query
- editing fonts of category links from the_category() funtion
- Force a user’s posts category
- Style wp_list_categories
- Checking for two categories in query_posts
- get_the_categories filter returns an empty array
- Show category to visitors in different name or different language without changing basic category
- How to get latest posts from each category in regular order
- Get posts from specific taxonomy term
- limit a list of tags to one category [closed]
- How many categories can WordPress handle before performance suffers?
- Get sort order of product categories
- How to pull a list of posts in a category while exluding posts in subcategories of the category
- Exclude category from query
- How to loop custom post_type from (a) specific category(ies)?
- Display posts of certain categories to specific user roles
- Display Related Posts by “Category” “by Author”
- Change post title if post has specific category
- How set all posts in wordpress in one category
- custom query for both category and pages using global $wpdb;
- url for posts for a date within a category
- Autolinking keywords in text with tags
- Compare current post Category in select menu
- WP E-Commerce creating categories programmaticaly [closed]
- Different post slug based on archive
- How do I get conditional sidebars for specific category archives and posts
- Post does not show category wish just show latest post
- Show category in post page, that is in specific category
- Is there a way to ‘archive’ inactive categories?
- Getting child category id (help with improving my code)
- Assign post category to a page by selecting category from page dashboard
- Assign a class to first element in category in loop
- Different template for subcategories
- Hide category name using mod_rewrite
- Automatic Category selection
- How can I modify this code to iterate over an array of categories?
- DESC order not working when showing only child categories
- Search tag within category
- Custom WordPress category page showing all posts rather than the specified category
- Add 1 category more to If_in_category statement
- How to get Woocomerce categories count
- show posts from some category and sort by advance custom field
- how do I exclude a category foreach