Array terms, if term one, if term two, etc

I solved it like this. Although if there are more than 3 co-authors problems could arise $tagx = get_the_terms($post->ID , ‘autoria’); $number = count($tagx); if ( $number == 1) { $first_author = $tagx[0]; echo ‘<strong>’; echo esc_html( $first_author->name ); echo ‘</strong>’; } if ($number == 2) { $first_author = $tagx[0]; $second_author = $tagx[1]; echo ‘<strong>’; … Read more

Custom taxonomy still using query URL after fixing error

To address the issue of your custom taxonomy resource-category not displaying correctly even after fixing the custom post type and flushing permalinks, you can follow these steps: Double-check the Registration Code. Flush Permalinks Again: Go to Settings > Permalinks and click on Save Changes. This will flush the rewrite rules and update the permalinks. Clear … Read more