Modify the query method when adding category filtering function to the custom post list
Modify the query method when adding category filtering function to the custom post list
Modify the query method when adding category filtering function to the custom post list
Could look into using get_ancestors();. It will get an array of all of the ancestors of the item in order from lowest to highest. See: https://developer.wordpress.org/reference/functions/get_ancestors/
You could probably use some JavaScript to capture the selected option and then make an Ajax call to the REST API to fetch the corresponding posts and update the second field.
I wanted to display the terms with the get_the_term_list function so, since categories & taxonomy have a “similar logic”, I replaced the “the_category_list” add_filter( ‘the_category_list’, ‘ci_theme_the_category_list_remove_parent_categories’, 10 ); with “get_the_terms” add_filter( ‘get_the_terms’, ‘only_last_taxonomy_terms’, 10 ); and it does what I need.
By default WordPress sets the length of that field to 200 when the database tables are created. Now you could change that by running this SQL command in your console (change the tabe prefix to your setting, and make a backup first): ALTER TABLE wp_terms MODIFY COLUMN slug VARCHAR(1000); But … the nice name, the … Read more
Searching in wordpress using wp_term_taxonomy table
Hook for taxonomies needed
Set multiple Post Terms in same Taxonomy
extend HierarchicalTermSelector function with custom renderTerms
Figured it out myself. Apparently, the pagination break because both my ‘products’ and my ‘types’ (those are not the terms I have, just for demonstration purposes) are having the same slug. Products has a slug of ‘products’ and types has a slug of ‘products/%typename%’. Due to this I can make my permalinks hierarchical: products/dvd or … Read more