Title: Simple PHP
Last modified: August 20, 2016

---

# Simple PHP

 *  [cbur2107](https://wordpress.org/support/users/cbur2107/)
 * (@cbur2107)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/simple-php/)
 * Would someone be so kind as to tell me how to get the facebook share code below
   to OPEN IN A NEW WINDDOW?
 *     ```
       <div class="ep_facebook"><a> Facebook" href="http://facebook.com/share.php?u=<?php the_permalink() ?>&t=<?php echo urlencode(the_title('','', false)) ?>>Facebook</a><a> Facebook" href="http://facebook.com/share.php?u=<?php the_permalink() ?>&t=<?php echo urlencode(the_title('','', false)) ?>">facebook</a>
       </div>
       ```
   
 * I have tried a bunch of different things with no luck.
 * Thanks in advance.

Viewing 1 replies (of 1 total)

 *  Moderator [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * (@zoonini)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/simple-php/#post-2171380)
 * The code for opening a link in a new window is `target="_blank"` – you add that
   to your `<a href>` tag.
 * Please use the backticks (code formatting button) so your code comes out properly.

Viewing 1 replies (of 1 total)

The topic ‘Simple PHP’ is closed to new replies.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [new-window](https://wordpress.org/support/topic-tag/new-window/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Kathryn Presner](https://wordpress.org/support/users/zoonini/)
 * Last activity: [14 years, 9 months ago](https://wordpress.org/support/topic/simple-php/#post-2171380)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
