Home › Forums › Support › Merge 2 hooks into one This topic has 3 replies, 2 voices, and was last updated 4 years, 4 months ago by Leo. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts December 3, 2019 at 8:16 am #1091892 Hilton Hi, I’d like to know if there is a way to merge these 2 hooks into only one. Both have the same configuration and display rules: <?php if ( is_author( '16' ) ) : ?> <div class="mbf-job-title">Nutritionist CFD 332554</div> <?php endif; ?> <?php if ( is_author( '15' ) ) : ?> <div class="mbf-job-title">Cardiologist - CGD 553109</div> <?php endif; ?> Thanks December 3, 2019 at 9:20 am #1091994 LeoStaff Customer Support Hi there, Like under the same hook element? If so you should be able to just combine them like this: <?php if ( is_author( '16' ) ) : ?> <div class="mbf-job-title">Nutritionist CFD 332554</div> <?php endif; ?> <?php if ( is_author( '15' ) ) : ?> <div class="mbf-job-title">Cardiologist - CGD 553109</div> <?php endif; ?> December 3, 2019 at 9:31 am #1092009 Hilton Thanks Leo. December 3, 2019 at 10:26 am #1092088 LeoStaff Customer Support No problem 🙂 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