2

Looking at the docs for register_taxonomy, it takes 3 parameters, the 3rd of which is the arguments, and it looks like in your code you have the arguments in the second parameter. Perhaps this is one of those tricky bugs where this was somehow working in previous versions and it officially shouldn't have been. If songs is the object, you need to add another ...


1

Managed to get it working with the following code: <?php $terms = wp_get_object_terms($post->ID, 'product_category'); if(!empty($terms)){ foreach($terms as $term){ $exampleName = $term->name; $exampleSlugs[] = $term->slug; $category_colour_primary = get_field('category_colour_primary', $term); $category_colour_secondary = ...


1

I would try something like this... // Assume there is only one category. $product_category = get_the_terms($post, 'product-category')[0]; $cat_fields = get_fields("term_$product_category"); $color = $cat_fields['category_colour_primary']; You could also do this... // Assume there is only one category. $product_category = get_the_terms($post, '...


1

The correct link should look like this: /wp-admin/edit.php?{taxonomy_slug}={term_slug}&post_type={cpt_slug} For example. If you have taxonomy brand and it has term (category) test, your link will be: /wp-admin/edit.php?brand=test&post_type=CPT


1

In short, your code is fine, but the custom query's pagination and the one for the main query, they can't be using the same paged URL query string (which WordPress reads the value from for the paged query arg used in a WP_Query request). Why the error 404? So for examples, paginated/paged category requests can have one of these URLs: Full pretty URL: https:/...


Only top voted, non community-wiki answers of a minimum length are eligible