Instead ID you should use cat_ID
$data[$i]['id'] = $category->cat_ID;
get_categories() return list of category objects with:
"term_id": 7,
"name": "default",
"slug": "default",
"term_group": 0,
"term_taxonomy_id": 7,
"taxonomy": "category",
"description": "",
"parent": 0,
"count": 11,
"filter": "raw",
"cat_ID": 7,
"category_count": 11,
"category_description": "",
"cat_name": "Analiza",
"category_nicename": "default",
"category_parent": 0
Related Posts:
- General Term for this form Field
- How do I change the functionality of an image slider which is part of ACF?
- Custom REST API POST Endpoint Not Working, 404 Error
- Getting all woocommerce products from REST API call in plugin
- is it possible to fetch data from a remote api while admin is writing a new post?
- Make custom post types using ACF
- add tags to wordpress post using REST API
- WordPress output data to another website and pull data
- Hide response returned from WordPress REST API call
- Problem Advanced Custom Fields PRO
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- How achive serving multiple concurrent Ajax / Rest calls in plugin?
- CRUD from WordPress to Business Central 365 through OData REST API
- How to pass multiple custom fields as shortcode’s parameters
- WP Rest Api GET method restriction on route, but POST method also works
- Showing how many times is plugin activated or deactivated
- Modifying server’s response to API endpoint
- Can’t access 3rd party API, code works on local server but not on wordpress
- Is it possible to custom set query for a WordPress REST API response?
- How can I add a permissions callback to the REST API index pages?
- Meta Key array building with multiple input values from fields
- How to get data from a private API and add it to wordpress pages
- Get all user meta_keys and then group users by matching values
- Custom product page’s style for printing
- Custom plugin issue – Notice: Trying to get property of non-object in
- If I am not writing a theme, how do I add custom fields to a user for a plugin
- Fetching users data from REST API
- Consume legacy rest api dependent upon WP API plugin
- Taxonomy question
- wp rest api (v2) filter not working (404 error – rest_no_route)
- WordPress PHP error getting posts from another wordpress blog
- How to get post that has non zero or greater than zero meta value
- custom REST endpoint not passing body of POST request to callback
- How can I call functions from a custom plugin?
- Creating Nested custom fields
- Fetching WP.me shortlinks for posts using WP Rest API
- Problem with conditional woocommerce custom checkout field
- Create Biographies
- Upload image to wordpress using ionic/cordova with WP REST API V2
- WP Rest API v2.0 user profile update issue
- Sending post data over REST API, how to parse shortcodes in post_content?
- WordPress doesn’t save a post revision when changing CMB2 custom fields
- How to do rest APi with wordpress
- Do something with thumbnail image on post publish
- How to add wordpress plugins in along with my standalone theme
- Add custom field for users
- How to Save settings of custom tab product page in admin side in a database?
- Changing the body of mail sent to new user registration
- Add new post using a page inside the website
- Need help getting a certain value out of a multi dimensional array
- Creating a user ‘add custom field’ section
- What method should I use for a sidebar widget that reads latest posts?
- Synch Custom Post Types (and Custom Fields, Cats, etc.) Between WordPress Sites
- WordPress Meta Query: Relation is not working correctly
- How can i do custom author list?
- force category table refresh when adding new category
- Is there a way to add a custom input field for every taxonomy term in WP post editor?
- Advanced Custom Fields Plugin – not displaying images
- Extend WordPress REST API with Scheme Pro Plugin
- get_post_meta does not work
- Converting a themes featured image to WordPress featured image
- Woocommerce custom fields
- Trying to use Advanced Custom Fields with custom image sizes
- ACF: Hide a div or template section when a custom field (in a field group) is empty
- How ACF Advanced Custom Field works with Woocommerce Single Product [closed]
- How do I add custom fields to the “Edit page” admin screen?
- Displaying Random Image from ACF Options Page [closed]
- A plugin for software reviews site like this one?
- Need help saving input fields for Security Deposit plugin in WC Vendors page
- Adding a variable to a meta field in the backend?
- Integrating WordPress Content into a jQuery Slider
- how to know that a wordpress plugin support using API?
- ACF: Not displaying ACF data from another post
- Order shipped by which driver[hook for woocoomerce order staus changed and popup in admin panel ] [closed]
- How to change data format in custom meta box field [closed]
- Outputting custom field query from a plugin to the website header
- wordpress Ajax success doesn’t return the value
- How can I send api calls from my plugin?
- Filter custom post type returned from REST api
- My wp_update_nav_menu action is firing twice
- Render CMB2 select option to post page [closed]
- WordPress REST API Visual Composer Shortcodes
- Update post meta Rest Api
- Social login authentication via wordpress rest api
- Links not opening as they should. Custom WP plugin
- Is there a plugin or another way that can help me find out the underlying files of a page/post? [closed]
- Is option_active_plugins actually doing anything useful?
- WordPress REST API filter on blank custom ACF
- WooCommerce REST API aborts connection [closed]
- Is it possible to create post in wordpress using postman?
- Order custom post type by posts with most likes first
- How to update a lot of posts on my WP site with additional content?
- how to update WordPress plugins from external website with nodejs?
- Block Root REST API Route using custom &/or iThemes
- Accessing Correct Database to Create REST API Endpoint
- additional fields based on the quantity of products selected
- Is it a good idea to restrict the REST API
- REST API – filters not working inside plugin class
- WordPress additional update of publications after importing WP All Import Pro
- i need to resive data external api and show user