Home › Forums › Support › How to display only one tag instead of all ? This topic has 3 replies, 2 voices, and was last updated 3 years, 10 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts June 15, 2020 at 7:00 am #1328545 Francesco Hi, is there a way to have the script displays only the first tag and not the entire tags used in a post? thanks! June 15, 2020 at 8:27 am #1328773 DavidStaff Customer Support Hi there, try this PHP snippet: add_filter('term_links-post_tag', function($terms) { return array_slice($terms,0,1,true); } ); June 15, 2020 at 8:28 am #1328776 Francesco Thanks, where should I add this ? function.php file ? June 15, 2020 at 8:33 am #1328802 DavidStaff Customer Support Yes, in your Child Theme functions.php or you can use the Code Snippets plugin https://docs.generatepress.com/article/adding-php/ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In