Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

WordPress From Bootstrap to WordPress Create Bootstrap Styled Theme Templates Creating a Portfolio Single Page

Andres Ramirez
Andres Ramirez
18,093 Points

"View Final Piece" external link. How to set it?

At the end of this video, Zac clicks on the "View Final Piece" link, and it takes him to an external website. He did not mention how to set this up though.

How, or where do I set the URL that this button should link to?

2 Answers

From the video he states that prior to this video there was a field created called link. I would suggest going to one of the prior videos to see how he sets that up. If you can't find that section of the video I would suggest creating your own custom field and link.

Andres Ramirez
Andres Ramirez
18,093 Points

Hi Jacob,

Thanks for your response. Would this be under the "Custom Fields" tab? I can't seem to find the proper section in the WP dashboard to add this link.

The code is set, I just need to find where to add the link in WordPress.

<div class="col-sm-4">

          <h1> <?php the_title(); ?> </h1>
          <?php the_content(); ?>
          <p><a class="btn btn-large btn-primary" href="<?php the_field('link'); ?>">View Full Project <span class="glyphicon glyphicon-new-window"></span></a></p>


That is correct. You can create the field under custom fields tab in the backend.