terms – Trim output from the the_terms function

Question

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.

Thanks.

0
Brett 1 month 2022-10-17T10:08:13-05:00 0 Answers 0 views 0

Leave an answer

Browse
Browse