That is because get_terms()
does not accept array type as a value for the ‘orderby’ parameter. The documentation says about this parameter:
‘orderby’
(string) Field(s) to order terms by. Accepts term fields
(‘name’, ‘slug’, ‘term_group’, ‘term_id’, ‘id’, ‘description’),
‘count’ for term taxonomy count, ‘include’ to match the ‘order’ of the
$include param, ‘meta_value’, ‘meta_value_num’, the value of
$meta_key, the array keys of $meta_query, or ‘none’ to omit the ORDER
BY clause. Defaults to ‘name’.
You can see here the original documentation page
Related Posts:
- Order get_terms using a Custom Field
- How to get_terms() only of terms matching an ACF meta value?
- WP REST API: Order posts by meta value (acf)?
- sort by date in Advanced Custom Field
- Display post in order of ACF checkbox?
- Query and display only by first letter of the get_field value
- Sorting get_terms, ACF is automatically removing duplicates
- Multiple orderby date arguments
- How to use germ_terms() with meta_query for ACF Taxonomy field?
- wp_split_shared_term_batch messing up upgraded ACF 5 data
- ACF order relationship by date
- Pin to Top Functionality using orderby custom field then event date
- Displays a string of linked images
- ACF – get fields from group
- How to get “Additional CSS Class” for ACF Gutenberg block
- Advanced Custom Fields select field : How to echo the label, not the value? [closed]
- Get value in custom field with taxonomy [closed]
- ACF: get_field() returning false [closed]
- Adding custom fields to the header.php
- Query between dates using Date Picker fields
- Display Custom Taxonomy Terns ordered by meta_value
- List taxonomy terms plus their latest post ordered by post date
- Showing an ACF field in admin posts dashboard
- Google Places API With ACF [closed]
- ACF Repeater Field, need IF statement for if sub field has content
- Can not create fields in ACF with code
- Advanced Custom Fields – Check if multiple get_fields exist?
- ACF – Custom fields have dissappeared [closed]
- Error in Validate Field with ACF plugin in WordPress
- disable (read only) a field if within a custom post type name
- How to change the page title from functions.php
- Acf Pro repeater field returns null [closed]
- WP_Query ordering numbers as letters
- Insert Commas into ACF number field
- How I can check if get_theme_mod is in header or a template part
- Using pre_get_posts for meta value of LIKE comparison on ACF repeater sub field
- WP Rest endpoint with custom post type and ACF Fields
- Advanced custom fields: Customise date picker’s start date (need to choose year 1500 onwards) [closed]
- ACF Advanced Custom Fields | Help me grab the fields on my WooCommerce homepage [closed]
- Order wordpress taxonomy parent terms by their children count
- Show listings from Impress Listing plugin in random order using taxonomy and terms
- Updating the database with advanced custom fields
- How to share repeated fields across multiple pages?
- Allow user to set custom order to a list of custom taxonomies?
- ACF: replace comma with another sign [closed]
- Remove headings option from Wysiwyg editor from ACF in a certain custom post type
- Organize media library into folders and get folders via WP Rest API?
- How to break a date from ACF?
- ACF (Advanced Custom Fields) not updating post or postmeta values
- ACF Multiple Checboxes Output
- Filter posts by advanced custom field
- How to order posts by title after they have already been sorted by category
- Ordering Taxonomies / Changing term_id
- Insert Content into Script with Advanced Custom Fields
- Migrating data from ACF to WordPress custom meta boxes
- Get image data from advanced custom field [closed]
- Check for image with same filename but different extension
- ACF: Querying relationship fields with Author
- Advanced Custom Fields if else issue
- Function wp_enqueue_style was called incorrectly
- ACF Clone Field – Set Default Value
- ACF save json to custom directory not working, default acf-json used instead
- ACF URL behavior, duplicating links
- Do comparision after updates hooks of acf-fields?
- How can you query posts by advance custom field when the value is a serialized array? [closed]
- Check for duplicate custom field value before running wp_insert_post
- Query by radio button ACF
- Adding new parent item to admin bar
- Display category multi-select with Advanced Custom Felds
- Advanced Custom Fields Plugin: how to use a checkbox to allow a post to show up in desired “zone”?
- Advanced Custom Field Textarea not Showing (ListingPro Theme)
- Fill up advanced custom field of a custom post type via API REST POST
- Two problems that are likely related to AJAX
- ACF – Eliminate unnecessary data and print
- Is there any way to bulk search-replace URLs that exist within ACF’s “Link” field type (serialized)?
- Get values from an advanced custom field
- Edit (advanced) customs fields on page template
- ACF Posts in Theme Options only returning when logged in? Bug?
- Advanced Custom Fields frontend form submission
- Display of Custom Fields based on conditional if/and according to category/tag choice
- Comparing two dates (ACF and current time)
- Advanced Custom Fields Gallery and Flex Slider [reformuled]
- Display ACF field(s) from widget in FE
- Convert number to date format within an array
- ACF not updating value correctly
- ACF Repeater and Sort
- Advanced Custom Fields, DatePicker – Check if Set
- How to access advance custom fields with post type in a for each loop
- Acf Pro repeater field returns null when call inside foreach
- Relationship field search not retriving posts in admin
- Related Posts by taxonomy using Advance Custom Fields Plugin
- advanced custom fields plugin last input field in new posts
- WordPress loop based on url sting
- Display “Today” Instead of Date for Pubslished Posts
- Tax query array terms display out of order
- Advanced Custom Fields repeter field expiration
- WordPress/Timber/Twig – Trying to output checkbox values [closed]
- How to use WordPress to embed a SoundCloud download link?
- Advanced Custom Fields – Issue with Slick Slider in ACF v6 Block
- How can I update an ACF field in a repeater on post save?