Home › Forums › Support › Blog Category description not showing This topic has 7 replies, 3 voices, and was last updated 3 years, 9 months ago by David. Viewing 8 posts - 1 through 8 (of 8 total) Author Posts June 3, 2020 at 6:42 am #1312487 Dominic Hi, We want to write text on our blog post categories under the field description. This text when entert is not showing on the front end of the category. See what I mean: https://www.screencast.com/t/xeWte4m02 How can we fix this? Thank you for your help Kind regards, Dominic June 3, 2020 at 10:28 am #1312959 LeoStaff Customer Support Hi there, That’s because a header element is being used. I think this is the best solution: https://docs.generatepress.com/article/header-element-template-tags/#custom_field-name June 3, 2020 at 11:07 am #1313023 Dominic Hi Leo, thanks for the feedback. Not being a developer I have no idea what to do with the {{custom_field.name}} How should I use this and where? Thank you for your time and help. Kind regards, Dominic June 3, 2020 at 11:11 am #1313027 LeoStaff Customer Support Let’s try this method. Add this code: add_shortcode( 'term_description', 'tu_term_description' ); function tu_term_description() { ob_start(); echo term_description( get_queried_object()->term_id, 'category' ); return ob_get_clean(); } Using one of these methods: https://docs.generatepress.com/article/adding-php/ Then add the shortcode: [term_description] To the header element. Let me know if this helps ๐ June 5, 2020 at 12:41 am #1315094 Dominic -Using the code I get an error in code snippets It’s probably a syntax error but I don’t know enough of PHP to fix it. I’ve added the short code to the Global Header element that also All Archives as location. Thank you for your time and help June 5, 2020 at 5:23 am #1315386 DavidStaff Customer Support Hi there, i update Leos code above. June 5, 2020 at 6:00 am #1315432 Dominic thanks this works ๐ It only doesn’t display where I want it Tried it as a hook in the “before main content” but then it just displays the actual shortcode. How should I proceed? thanks again for all the help June 5, 2020 at 7:08 am #1315497 DavidStaff Customer Support Make sure to check the Execute Shortcodes option in the Hook Element Author Posts Viewing 8 posts - 1 through 8 (of 8 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In