terms – Trim output from the the_terms function
I need to trim the first 5 characters (the same across all the terms to be displayed) of a listing of terms. This is my code:
<?php ltrim(the_terms( $post->ID, 'atsc_progress_reports_post_type', '', ', ' ), "2022 "); ?>
This code doesn’t work. It doesn’t throw an error, it just doesn’t remove the 2022.