Title: target=blank links
Last modified: March 21, 2017

---

# target=blank links

 *  Resolved [davekehoe84](https://wordpress.org/support/users/davekehoe84/)
 * (@davekehoe84)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/targetblank-links/)
 * Hi,
 * Great plugin.
 * Is there a way to make all the links to the popular posts target=”blank” links?
 * Please let me know if this is possible, and how it can be done.
 * Best wishes
 * Dave Kehoe

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/targetblank-links/#post-8940219)
 * Hi Dave,
 * Yep, it can be done:
    1. Go to _Settings > WordPress Popular Posts > Tools_.
    2. Under **Miscellaneous**, set _Open links in_ to _New tab/window_.
    3. Hit the _Apply_ button to save changes.
    4. Profit!
 *  Thread Starter [davekehoe84](https://wordpress.org/support/users/davekehoe84/)
 * (@davekehoe84)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/targetblank-links/#post-8942895)
 * Hi Hector,
 * Thanks for responding so quickly.
 * That is great, it was a far simpler change than I thought it would be.
 * Getting even more specific, is it possible to apply this rule to only one of 
   the places I place the wpp plugin?
 * For example, I use wpp on a page to showcase some of my popular content, where
   I would like the links to be target blanks.
 * But I also use wpp in a sidebar, where I would prefer the links to not be target
   blanks.
 * Can you specify this rule to each individual use of the plugin?
 * Getting picky I know! Thanks for your ongoing help.
 * Dave
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/targetblank-links/#post-8944039)
 * You mentioned that you’re using WPP on a page so I’m assuming you’re talking 
   about the [[wpp] shortcode](https://github.com/cabrerahector/wordpress-popular-posts/wiki/1.-Using-WPP-on-posts-&-pages).
   Try this:
    1. Go back to _Settings > WordPress Popular Posts > Tools_ and set _Open links 
       in_ to _Current window_.
    2. Now, let’s have links on your WPP page open in a new window / tab by using the
       _post\_html_ parameter to modify the HTML output. Here’s an example: `[wpp range
       ='all' post_html='<li>{thumb} <a href="{url}" target="blank">{text_title}</a
       ></li>']` (see _Settings > WordPress Popular Posts > Parameters_ for more.)
 * This also works with the [wpp_get_mostpopular() template tag](https://github.com/cabrerahector/wordpress-popular-posts/wiki/2.-Template-tags#wpp_get_mostpopular),
   just in case you’re wondering 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘target=blank links’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [Blank](https://wordpress.org/support/topic-tag/blank/)
 * [links](https://wordpress.org/support/topic-tag/links/)

 * 3 replies
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/targetblank-links/#post-8944039)
 * Status: resolved