Try this,
$categories_array = array();
$categories = get_categories();
foreach( $categories as $category ){
$categories_array[] = $category->term_id;
}
array(
'param_name' => 'category_id',
'type' => 'dropdown',
'value' => $categories_array, // here I'm stuck
'heading' => __('Category filter:', 'overmax'),
'description' => '',
'holder' => 'div',
'class' => ''
),
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
- Return array of categories to php function
- How to add HTML5 ‘required’ attribute to wp_dropdown_categories() without JavaScripts?
- Listing all posts from current category on page
- Display WooCommerce product categories in a 4 columns custom menu [closed]
- Show post only if match all categories
- How to retain the values from dropdown category lists after wrong form submission?
- Dropdown category filter
- 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
- Resort get_categories
- Additional form options based on category selected not working
- wp_dropdown_categories() scripts working erratically on sidebar
- Create menu locations for each category in wordpress
- 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
- Use premade array as categories in wp_query?
- Array: What is this value based on?
- wp_list_categories walker without links on categories that have subcategories (to make a nested dropdown menu)
- How to get an array with all categories and corresponding names?
- Link To Child Category For A Post
- List a maximum of ‘x’ product categories with qty of ‘y’ in each column
- Filter posts by categories ajax is showing nothing
- WordPress Customizer: Dropdown with Category output
- Filter By Category Dropdown List With Custom Taxonomies
- Need to echo category id in multi-dimensional array
- Getting Category Children
- A dropdown with checklist
- I need to exclude from a query a category and a few custom taxonomies
- Wp Dropdown Category Not Show Current As Title
- wp_dropdown_categories initial value
- 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?
- custom browse by
- Cant get unique_array() work on get_the_category() foreach loop
- 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
- Matching usermeta at registration to categories of content
- Form Value of drop down category + Translation of ‘show option none’
- How to change category id on get_posts array
- How to define category ID in an array?
- Order Categories by Character Count
- how do I exclude a category foreach
- Category archive by year with permalink support /category/YYYY
- Create a category list page
- How do I use the same post slug for different Categories?
- Default WP Gallery – show only galleries of a certain category
- How to tax query X number of posts related by tag first, then by category if not enough in tag-related
- Woocommerce product categories order [closed]
- How do I create a way for users to assign categories to a post from the frontend?
- Exclude sub category posts from category display
- How to hide a specific category posts in my monthly archive?
- Give specific category its own permalink structure
- Automated adding of one tag to all the posts in a category
- How to set up sub-categories for author pages?
- Assign different category colours to different categories in the main menu
- wp_list_categories, Add class to all list items with children
- Using separator with wp_list_categories
- How to mass-insert categories?
- Multi-site or categories?
- View the latest created categories
- How to display only posts assigned to a particular, isolated, subcategory
- Two separate portfolio pages [closed]
- wp_update_post is not updating category
- What’s wrong with my wp database query?
- WordPress get from single.php back to the right category page
- Include WooCommerce product to all child categories
- Category url generate 404 error
- Style a category from category list
- Adding a page summary to a specific page
- Add a category on all archive category pages
- Assigning certain pages or posts to use the template of the parent page or category
- Check for parent category
- I need advice on how to structure the categories according to the layout i have
- Assign author to category and not only posts
- How to fetch common posts from two feeds?
- How to set acf color field as background color to product category
- How to add all subcategories as submenu in WordPress menu
- Category pages resolving with and without category prefix
- get taxonomy list in a page in the wordpress
- Is there a way to allow users to customize their feed view?
- Number of categories slowing down the site
- Subcategory Page 404ing
- displaying one category on one page
- Question About Messing With Category Pages and Descriptions
- How to exclude category and post_tag taxonomy while displaying custom taxonomy?
- Dropdown switching subcategories portfolio
- List Terms by category
- How to make 10 post of one category
- Custom permalinks structure