BuilderChild-Covert
From IThemes Codex
(Difference between revisions)
(Added = How to link featured image in single project page to specific URL =) |
m |
||
| Line 26: | Line 26: | ||
[[Image:Front-end.png|800px|none]] | [[Image:Front-end.png|800px|none]] | ||
| + | |||
| + | = Entry 2 = | ||
| + | |||
| + | = Entry 3 = | ||
| + | |||
| + | = Entry 4 = | ||
Latest revision as of 01:04, June 22, 2011
Contents |
How to link featured image in single project page to specific URL
1. Install and activate Advanced Custom Fields plugin. Go to Settings -> Adv Custom Fields. Add a new custom field which should appear in project entry edit screen.
2. Edit project entries and add the URL of your choice in the new metabox.
3. Edit single-builder_projects.php.
Change
<?php the_post_thumbnail('inside-page-thumbnail'); ?>
to
<a href="<?php echo get_field('project_url'); ?>"><?php the_post_thumbnail('inside-page-thumbnail'); ?></a>
That's it.