MySQL error or data corruption after database migration
Apparently, this is a bug with WordPress, it’s still incompatible with MySQL 8, a quick patch could be found at this link: https://core.trac.wordpress.org/ticket/48377
Apparently, this is a bug with WordPress, it’s still incompatible with MySQL 8, a quick patch could be found at this link: https://core.trac.wordpress.org/ticket/48377
you can use advanced custom field plugin for better use // get the current taxonomy term $term = get_queried_object(); // here is the taxonomy image $image = get_field(‘image’, $term); Or You can use free plugin in your template URL: https://wordpress.org/plugins/wp-custom-taxonomy-image/ if (function_exists(‘get_wp_term_image’)) { $meta_image = get_wp_term_image($term_id); //It will give category/term image url } echo $meta_image; … Read more
I’d suggest editing your single template, instead of functions.php. So, in a child theme, edit single.php and whatever other templates your theme uses for the CPTs, at the location where it outputs the author’s name. Where the author’s name is being displayed, you can then also grab their user meta (gender and country) and output … Read more
How to group custom posts in admin menu based off taxonomy/postmeta
Why can’t pages be categorized / tagged?
To make unremovable terms, you need to revoke the delete link appear on the terms screen. To revoke terms delete link, you can use filter: manage_TAXONOMY_COLUMN.
List all categories that have results in a query
You need to use action to get categories. in init action you can get product categories. add_action(‘init’, ‘my_product_cat’); function my_product_cat() { $woo_cat_args = array( ‘taxonomy’ => ‘product_cat’, ‘orderby’ => ‘name’, ‘hide_empty’ => 0, ); $woo_categories = get_categories( $woo_cat_args ); echo “<pre>”; print_r($woo_categories); echo “</pre>”; }
Parent Category and Subcategory default text generated with category
How to add CSS class field in Custom Taxonomy?