How do I target a links only in a custom post type and only in the p tag? October 23, 2022 by Tarik Billa You can try this- .single-application .entry-content p > a { text-decoration: underline; } Where .single-application is based on your post type, .entry-content is the wrapper of your post content. See the page source-