WordPress.org

Support

Support » How-To and Troubleshooting » Open in new window

Open in new window

  • Where in the following code, do I add the target=”_blank” to make my images open in another window?

    <a href="?php $key="featured_external"; echo get_post_meta($post->ID, $key, true); ?>" title="<?php the_title(); ?>">
    						<?php
    						if(has_post_thumbnail())
    							the_post_thumbnail('thumbnail');
    
    						if($category[0]->slug == 'projects'){ ?>
    						<span>
    							<strong><?php echo get_the_title() ?></strong>
    							<?php echo get_the_excerpt() ?>
    						</span>
    						<?php } else { ?>
    						<span>on <?php echo $category[0]->cat_name?></span>
    						<?php } ?>
    					</a>

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Open in new window’ is closed to new replies.
Skip to toolbar