Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

Andres Ramirez
Andres Ramirez
18,094 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,094 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>

        </div>

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