Home › Forums › Support › ACF & Elements Hook This topic has 3 replies, 2 voices, and was last updated 3 years, 5 months ago by David. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts October 18, 2020 at 6:48 am #1494189 jon Hi Tom + Crew Ive created ACF titled ‘Onlyfans’, displayed via a hook, I’d like to display the Post Title combined with the button title i.e Post Title + OnlyFans = Haydies OnlyFans, can you advise? <?php $link = get_field('onlyfans'); if( $link ): ?> <a class="button" href="<?php echo esc_url( $link ); ?>">Post-Title Here Onlyfans</a> <?php endif; ?> Thanks October 18, 2020 at 7:10 am #1494202 DavidStaff Customer Support Hi there, you can include the <?php the_title(); ?> in your button text. October 18, 2020 at 7:24 am #1494213 jon Perfect 👍 October 18, 2020 at 7:29 am #1494217 DavidStaff Customer Support You’re welcome 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