BuilderChild-Covert

From IThemes Codex
Revision as of 00:04, June 22, 2011 by Sridhar (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

Adding-custom-field.png

2. Edit project entries and add the URL of your choice in the new metabox.

Project-edit-screen.png

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.

Front-end.png

Entry 2

Entry 3

Entry 4

Personal tools
Namespaces
Variants
Actions
iThemes Codex
Codex Navigation
Toolbox